This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JToolBar in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JToolBar in applet" Watch "JToolBar in applet" New topic

JToolBar in applet

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi everybody,
i try to make an applet menu with JtoolBar + JButton + JMenu. This one run when my page was loaded, so i like to click on the JToolBar to move it outide the browser... One idea ?
Patrice Imbert

Joined: May 13, 2011
Posts: 1
Just create a JToolbar object and add it to the JApplet
Container contentPane = yourJApplet.getContentPane();
contentPane.add( yourJToolbar, BorderLayout.PAGE_START );
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 38107
Welcome to the Ranch

I think you hold the record for the longest delay in replying
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JToolBar in applet
Similar Threads
Update GUI In Realtime
floating JToolBar doesn't close
Modify JToolBar buttons and actions
Separator in JToolBar
JToolTip in an applet