Results 1 to 1 of 1
Thread: strange swt exception
- 04-23-2009, 11:15 AM #1
Member
- Join Date
- Apr 2009
- Posts
- 1
- Rep Power
- 0
strange swt exception
i was just making my first steps in swt world and i faced that strange exception
Java Code:** (SWT:7229): CRITICAL **: giop_thread_request_push: assertion `tdata != N
the swt code it self is very simple and i dont know if it was the reason for that exception...any way here it is
Java Code:Display display = new Display(); Shell shell = new Shell(display); shell.setText("Hello world!"); GridLayout gl=new GridLayout(); gl.numColumns=2; shell.setLayout(gl); Combo combo = new Combo(shell, SWT.READ_ONLY); combo.setItems(new String[] { "A", "B", "C" }); combo.setSize(100, 200); Label label =new Label(shell,SWT.CENTER); label.setText("ahmed"); Label label2 =new Label(shell,SWT.CENTER); label2.setText("kotb"); shell.pack(); shell.setLocation(display.getPrimaryMonitor().getBounds().width/2, display.getPrimaryMonitor().getBounds().height/2); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose();
Similar Threads
-
strange code
By tghn2b in forum New To JavaReplies: 3Last Post: 12-23-2008, 12:51 AM -
AffinedTransform strange behaviour
By Echilon in forum AWT / SwingReplies: 3Last Post: 12-11-2008, 10:58 AM -
strange Error message
By little_polarbear in forum New To JavaReplies: 4Last Post: 08-26-2008, 12:45 AM -
Strange problem
By Tamir in forum EclipseReplies: 1Last Post: 08-18-2008, 10:44 PM -
Strange behaviour in swing
By cbalu in forum AWT / SwingReplies: 1Last Post: 05-23-2008, 10:23 PM
Bookmarks