File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 45415
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!