So my code worked yesterday but after building and cleaning it, it no longer works. Netbeans says it is unable to find and load the main class. I have not changed any of the code since running it yesterday, so the code isn't the problem. I have cleared the cache, renamed my project and folders, and copy/pasted original code into a new project. I have used a different version of netbeans and it says the same thing. When I go into properties, it does not have my main class as an option. Any help would be greatly appreciated!!
public class MyClass extends JFrame {
/**
*
*/
public MyClass() {
initComponents();
}
@SuppressWarnings("unchecked")
private void initComponents() {
JFrame frame1 = new JFrame ();
JPanel jp1 = new JPanel ();
frame1.getContentPane().add(jp1);
jLabel1 = new javax.swing.JLabel();
jp1.add(jLabel1);
jLabel2 = new javax.swing.JLabel();
etc...
public static void main(String args[]) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(MyClass.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
java.awt.EventQueue.invokeLater(() -> {
new MyClass().setVisible(true);
});
}
Requested Picture Requested Picture 2
Update: I have narrowed it down to something small in my code for Action performed. Any ideas? I've gone through it with a fine toothed comb and all brackets and semi colons are accounted for. There are also no red lines (error indicators).