This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm currently validating a swing application that runs on a browser (on an applets).
I came across with a problem for the java JRE 7 released by Oracle - this was not happening on Applet JRE 6 (1.6.0_33)
Every time I open a dialog within my application, that dialog comes to the front of the browser window but it does not request the focus as expected. THIS HAPPENS ONLY WHEN THE APPLET RUNS ON THE BROWSER.
Here is a small program to show the problem:
To run this code on an applet just create a jar file (let's call it test.jar) from the code. Then create a html file with the following content:
Once you run the html file, you'll see an grey area with a 'open dialog' button. If you press the button, a new dialog comes up with a JTextField and 3 buttons: 'Cancel', 'No' and 'Yes'. The button 'Yes' should be in focus by default, but that is not happening. Plus, even if you click in the JTextField, the field will not get the focus.
Again, this only happen when the applet run on the browser and only for Java 7 (which is the way I need to make it work).
java.vendor Oracle Corporation
os.name Mac OS X