Click here to Skip to main content
15,566,394 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");
Updated 9-Jul-21 4:37am
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