I am working through the Java examples on the Developer CD, as well as some from O'Reilley's "Learning Java."
For any pure Java code I saw, clicking the zoom button, that is the green one with the "+" sign, wrecks havoc with the contents of the window. The widgets are echoed in another part of the window, the text in the buttons fly out of them, etc. As one could expect, Cocoa-Java examples are immune.
As far as I can tell, there is no simple remedy. I thought of adding a "WindowListener", but there seems to be no suitable one. On the other hand, if that was simple, I suppose Apple would have fixed the code before putting it in the CD, and exposing itself to embarassment. I also assume this can't be a general problem for Java, as some of the code comes from Sun, and I bet will work on Unix and Windows.
Any ideas? If Apple wants to promote Java as its prime development tool, together with Objective C, standard Java code must work reasonably well out of the box.
For any pure Java code I saw, clicking the zoom button, that is the green one with the "+" sign, wrecks havoc with the contents of the window. The widgets are echoed in another part of the window, the text in the buttons fly out of them, etc. As one could expect, Cocoa-Java examples are immune.
As far as I can tell, there is no simple remedy. I thought of adding a "WindowListener", but there seems to be no suitable one. On the other hand, if that was simple, I suppose Apple would have fixed the code before putting it in the CD, and exposing itself to embarassment. I also assume this can't be a general problem for Java, as some of the code comes from Sun, and I bet will work on Unix and Windows.
Any ideas? If Apple wants to promote Java as its prime development tool, together with Objective C, standard Java code must work reasonably well out of the box.