• Post Reply Bookmark Topic Watch Topic
  • New Topic

Switching  RSS feed

 
Roshan Wankhade
Greenhorn
Posts: 21
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I' new to Swing...
I need to open a new form once OK is clicked for the login form.
I taken this login form on one JPanel in center of JFrame.
Now other Form should be open in same JFrame by disabling previous login JPanel..
I don't want new Jframe.

How to I do it?
Please help me...
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The login panel should be in a JDialog,
in the background the JFrame can be
constructed,and if login successful
frame.setVisible(true);

if you really want it all in a single frame,
look up CardLayout
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please BeForthrightWhenCrossPostingToOtherSites
https://forums.oracle.com/forums/thread.jspa?threadID=2339149
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!