[OSX] maybe thread problem [message #50078] |
Mon, 24 March 2003 21:49 |
Eclipse User |
|
|
|
Hi,
I had problems to launch an application on OSX. I've got a series of
problems that I came around with, but I have now one I can't understand.
The minimal program that shows the behaviour is at the end of this post.
I start the program in the MAC terminal from the directory containing
swt.jar swt-carbon... and f.jar with the following command
java -cp ./mac/swt.jar:./f.jar T.tMac_3
the result is a "dead" window with only the upper three red,yellow,green
buttons "living".
The same happens when I start the eclipse sample programs from outside
eclipse. The same proceeding works on w2k.
What am I missing?
Frank
P.S. code
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++
package T;
import org.eclipse.swt.widgets.*;
public class tMac_3 {
public static void main (String [] args) throws IOException {
Display display = new Display ();
Shell shell = new Shell (display);
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep();
}
display.dispose ();
}
}
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++
|
|
|
Powered by
FUDForum. Page generated in 0.03365 seconds