• Post Reply Bookmark Topic Watch Topic
  • New Topic

Chaning screen in Frames  RSS feed

 
Raghur Raman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using Jframes to develop my application. I use a Frame to display my authentication screen. The constructor for the main class creates the authentication screen and it call setVisible(true) to display the screen. Once I user the enters the details the details are verified against the database and if the verfication is successful I want to transfer the control to a new screen.
I tried to use remove(components) and then add the components that constititute the new screen, but it didn't work.
could anyone help me on this??
Thanks in advance...
Raghu.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Raghur,
You should be using JDialog to perform the authentication. Your main JFrame could lauch it first to get the required name and password.
Regards,
Manfred.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!