Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

text-editor - toolbar please

 
Rashid Ali
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made a simple java text editor with swing using jmenus, jtextarea etc.
now what i want is to add the toolbar with icons. may i know how can i do this.
please suggest.
thanks in advance.
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a JToolBar. Make some buttons, add them to the toolbar, then add the toolbar to the container. A sample:

Also, check out the tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/toolbar.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic