[Solved] Easy mainFrame/Windows not working! JAVA [closed]


As long as Constructor remains commented out, not showing anything is correct behaviour.

    public static void main(String[] args) {
            startScreen a = new startScreen();
    }

Try it this way (and edit your post to include source)

As MadProgrammer mentioned – you need to make the Frame visible to make all the Components within visible:

            // REPLACE THIS mainPanel.setVisible(true);
            mainFrame.setVisible (true); //WITH THAT

2

solved Easy mainFrame/Windows not working! JAVA [closed]