resize panel with resizing the window
807607Oct 12 2006 — edited Oct 12 2006Hi Gurus
Please help i have a question, you might have simple solution to.
i have three panels next to each other. first panel has jtable on the left, second DATA panel
in center and third BUTTONS panel on the right.
the middle panel displaying many texts using jlabel currently, which can be 1 to 150 characters long. The problem is when the values of those jlabels get longer, it pushes away the the panel on the right to either cut/overlap or even invisible for even longer values.
How can I make it flexible so I can set DATA panel size is displayed first time in smaller window, it shows fields in multiple lines and when I expand window, it resizes the data texts as well to avoid overlapping the right panel.
ie increase the window and it shows data from 3 to 2 lines, expand more, from 2 to 1 line ie keep moving words to upper line as the size of panel expands.
I also tried to use jscrollpane, it works ok but it has fixed size ie when i expand the window, the scroll pane size doesnt change. I do have set sizes to a particular, how do i set them to make it flexible.
THANKS