This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 44563
Welcome to the Ranch

I think you hold the record for the longest delay in replying
I agree. Here's the link:
subject: JToolBar in applet
It's not a secret anymore!