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 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

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
I agree. Here's the link:
subject: text-editor - toolbar please
It's not a secret anymore!