Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Please read this.....

 
sam patel
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created an applet which is basically a login screen (which asks for username and password)...
If the username and password is correct I want to open a frame which contains menu items...
Can someone tell me how can i do that in applet to open that frame with menu items...
Any help is greatly appreciated...
Thanks in advance.
 
Rob Ross
Bartender
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To open the frame you can just construct a new instance of JFrame, and set it to visible.
To add a menu bar to the JFrame, you use setJMenuBar().
See
http://java.sun.com/docs/books/tutorial/uiswing/components/toplevel.html#menubar
for more information.
[ September 13, 2002: Message edited by: Rob Ross ]
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!