Community
Participate
Working Groups
When generating code for a Swing application, VE generates calls to Component.show(). With Java 5 this method has been deprecated and should be replaced by setVisible(true). Examples of generated code are: public static void main(String[] args) { // TODO Auto-generated method stub Test2 application = new Test2(); application.show(); } private JMenuItem getAboutMenuItem() { if (aboutMenuItem == null) { aboutMenuItem = new JMenuItem(); aboutMenuItem.setText("About"); aboutMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new JDialog(Test2.this, "About", true).show(); } }); } return aboutMenuItem; } In both cases the call to show() should be replaced by calls to setVisible (true).
FYI: That wasn't deprecated in 1.5, it was deprecated in 1.1. I don't know how we missed it.
*** This bug has been marked as a duplicate of 93503 ***
closing