I tried running this but it still doesn't work
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new notesApp().setExtendedState(JFrame.MAXIMIZED_BOTH);
new notesApp().setVisible(true);
}
});
}
any ideas, thanks
new notesApp().setExtendedState(JFrame.MAXIMIZED_BOTH);
That creates a new Frame and sets the size, but doesn't show it.
new notesApp().setVisible(true);
That also creates a new Frame, but doesn't set the size before showing it.
Just create one new notesApp, and call both of those methods on it.