The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
July 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


JToolBar problem

Posted by Srikanth Kovuri on July 10, 2001 at 11:38 AM


I have written a java application. I am using a JToolBar component with JButtons in it. I am using all 16x16 icons for the button images in the toolbar. The application is running fine when i run it from the command prompt. Everything is comming fine, the gui the buttons in the toolbar etc., But when i run the application from another application (we have another frame similar to a desktop, where in all the components are arranged, the user can select any component), the gui is fine, but the toolbar is not coming properly. All the buttons in the toolbar are coming very big as if there are 32x32 images in the button. Because of this, most of the buttons in the toolbar are lost in the right side, and are not visible in the main screen. I can only see them if i put this toolbar in a scrollpane, but that was not a good solution. I guess some of the parents properties are being inherited into the application...

Can anyone please look into this, or have any idea why coming like this....

Thanks & Regards,
Srikanth Kovuri


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us