Click here to Skip to main content
15,899,475 members
Please Sign up or sign in to vote.
1.19/5 (4 votes)
See more:
I have two Jframe which is Login and register. I want to link the Login Jbutton to view the main page which is only a class java not a Jframe. How to link the Jframe with the class java??

What I have tried:

I have try

JFrame mP = new JFrame("Other Windows");
mP.setVisible(true);
mP.pack();
mP.setLocationRelativeTo(null);
mP.setDefaultCloseOperation(JFrame.MAXIMIZED_BOTH);
Posted
Updated 9-Jul-21 3:37am
Comments
Richard MacCutchan 22-Jun-21 8:55am    
The problem description and the code do not match, and it is not clear what the problem is.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900