Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic