• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread-safe JMenuBar and JFrame ?  RSS feed

achana chan
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I'm trying to create a menu bar and a few menu items, but using an applet invoked by an html script. The menu items in the applet will have actionlisteners for buttons etc
On clicking a menu item , another screen (GUI) will pop up, contained in its own frame. It will be refreshed continuosly from there on i.e. a child process which has a live of its own, even when the mother process is shut down (CLOSE_ON_EXIT).
(1) Does this mean that the child process is another thread ???
If I use an event dispatching thread, does this mean the child is "thread safe" ??? Pls see code

(2)From all the docos I've read so far, it seems building a menu bar requires a JFrame, but since a JFrame is a top level container and (as I understand the tutorial) cannot be displayed in a browser window, then how do I go about building a menu bar for an applet ???
TIA :-)
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!