Java 5.0 - Swing/Awt

Below lists modifications in lvg for Java 5.0:

  • Awt.Window.show()

    This method is deprecated and is replaced by setVisible(boolean).

    Example:

    
    public class foo {
    ...
    
    Frame fooFrame = new Frame();
    foo.setVisible(true);
    ...
    
    }
    
  • swing.JPanel, JDialog, etc.

    This class implements serializable interface. Thus, it requires serialVersionUID.

    Example:

    
    public class foo extends JPanel {
    ...
    
    private final static long serialVersionUID = 5L;
    
    }