frame.setTitle() hangs Java export
in
Programming Questions
•
3 years ago
I have a sketch that I am trying to export to both MacOSX application and Java applet. In setup, I have the following line:
frame.setTitle("Title that appears in application title bar");
This works great for the MacOSX export. But it causes the Java applet to hang. Any ideas for how to include this instruction so that the code can be exported to both MacOSX and Java?
My current workaround is to comment out this line when exporting to Java, but that is kind of a pain. Any ideas for how to write the line so it doesn't interfere with Java?
(Java doesn't give an error. It just sits there doing nothing and doesn't seem to get to the draw section of the code.)
frame.setTitle("Title that appears in application title bar");
This works great for the MacOSX export. But it causes the Java applet to hang. Any ideas for how to include this instruction so that the code can be exported to both MacOSX and Java?
My current workaround is to comment out this line when exporting to Java, but that is kind of a pain. Any ideas for how to write the line so it doesn't interfere with Java?
(Java doesn't give an error. It just sits there doing nothing and doesn't seem to get to the draw section of the code.)
1