meghrathod / chatX

Static fields of the parent class should not be accessed through child class instances JAVA-W1030
Anti-pattern
Major
2 years ago2 years old
EXIT_ON_CLOSE should be accessed through WindowConstants, not JFrame
58    }
59
60    synchronized public String login(){
61        loginWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);62        loginWindow.setVisible(true);
63        try {
64            wait();
EXIT_ON_CLOSE should be accessed through WindowConstants, not JFrame
198    }
199
200    synchronized public String login(){
201        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);202        this.setVisible(true);
203        try {
204            wait();