File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Adding Component to the right in JToolBar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding Component to the right in JToolBar" Watch "Adding Component to the right in JToolBar" New topic
Author

Adding Component to the right in JToolBar

Muhammad Imran Saeed
Greenhorn

Joined: Jan 14, 2009
Posts: 5
Hello All,

I have a question about JToolBar I have some components and I need to add some components on left and other on the right side ot the Toolbar. In the code which I have pasted below I need the Right button on the right side of the toolbar. I know the default layout for Toolbar is BoxLayout and i cant use rigid areas and invisibe filler component .



Kind Regards.

Muhammad Imran Saeed
Greenhorn

Joined: Jan 14, 2009
Posts: 5
Ok I have found the solution to the question which i posted. Here is my soloution. Hope it helps someone else...



Thanks anyways .
Regards,
Muhamamd Imran Saeed
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Adding Component to the right in JToolBar
 
Similar Threads
problem in swing tool bar
how to enable/disable this item?
GridLayout with weightx
Image on a JButton
tool barrrrrr