• Post Reply Bookmark Topic Watch Topic
  • New Topic

Displaying a JWindow

 
Shyam Purkayastha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hoe do I create display and add components to a JWindow
I think JMenu cannot be added to JWindow .Is there any alternative.
thanks
shyam
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JMenu can be added to JWindow:

Hope this helps
Rene
 
Shyam Purkayastha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rene
 
Drake Silver
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rene Liebmann:
Could your code be used as a sort of
message dialog(box).
I wold like to have some kind of splash screen, not really for anything but to display one line
of text describing some of my programs functions.
But the window would need to popup only one time, and either before the actual program started up, or by a button click.
thanks.
 
Shyam Purkayastha
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the purpose of Splash Screen you can subclass the JWindow and add functionalaty to paint for displaying text or images etc
For showing and hiding you can use timers
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!