aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes text-editor - toolbar please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "text-editor - toolbar please" Watch "text-editor - toolbar please" New topic
Author

text-editor - toolbar please

Rashid Ali
Ranch Hand

Joined: Jan 16, 2001
Posts: 349
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

Joined: Oct 13, 2000
Posts: 297
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
 
jQuery in Action, 2nd edition
 
subject: text-editor - toolbar please