Where it starts java.awt
and public void run()
, they are both underlined in red and when I click on them with my mouse, I get a message that says to move initializer to constructor. Can anyone help me with this?
public static void main (String[] args) {
// TODO code application logic here
EmployeeRecord main = new EmployeeRecord() {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new EmployeeRecord().setVisible(true);
}
)}
}
}