This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JToolBar in applet

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just create a JToolbar object and add it to the JApplet
Container contentPane = yourJApplet.getContentPane();
contentPane.add( yourJToolbar, BorderLayout.PAGE_START );
 
Campbell Ritchie
Sheriff
Pie
Posts: 49411
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I think you hold the record for the longest delay in replying
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic