• Post Reply Bookmark Topic Watch Topic
  • New Topic

toolbars in JFrame

 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a window by extending JFrame.it has munubars.I need to create toolbar as short cuts to the menu items. How can I do it?

Thanks
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a new toolbar. Make the JFrame's content pane have a borderlayout. Then add the toolbar to the content pane at BorderLayout.NORTH.
 
Sameera Abeysinghe
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You.
But i need to know how to create the new toolbar
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Than you probably need to consult/read the Swing Tutorial from SUN.

--
./pope
[the_mindstorm]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!