Click to See Complete Forum and Search --> : Class StatusPanel - How to set width of text allowed


Troy Wells
08-01-2006, 09:42 PM
I admit I'm not even a programmer, but I do edit some code from time to time. I am working with existing code for the status bar used by several of our Java applications. They use the Class StatusPanel.

What I can't seem to figure out is how the width used by status bar to display status messages is set. It seems to be a percentage of the length of the GUI. I say that because if I stretch the GUI out, more of the longer status messages is visible.

How is the portion of status bar that can display text set? Right now only about 40% of the status is used. I like to enable the messaages to use 100% of the bar.

Thanks for your help!!
Troy

Khalid Ali
08-01-2006, 09:46 PM
there are some methods that can be used for this purpose such as setWidth/height or preferedWidht/height etc. You will need to read the swin API for details.Or else you can post your code here for some 1 to take a look and help you out that way...