Minibuz / poo-design-pattern

Static fields of the parent class should not be accessed through child class instances JAVA-W1030
Anti-pattern
Major
a year agoa year old
EXIT_ON_CLOSE should be accessed through WindowConstants, not JFrame
 91                area.setOpaque(true);
 92                frame.setContentPane(area);
 93                frame.setResizable(false);
 94                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 95                frame.pack();
 96                frame.setVisible(true);
 97            });
EXIT_ON_CLOSE should be accessed through WindowConstants, not JFrame
 99                area.setOpaque(true);
100                frame.setContentPane(area);
101                frame.setResizable(false);
102                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);103                frame.pack();
104                frame.setVisible(true);
105            });