L
Lobang Trader
Dear experts,
I have the a JDesktopPane and a JPanel added to the CENTER and SOUTH
position of a JFrame respectively.
I would like to dynamically resize the JPanel upon mouseExited like the
Windows TaskBar.
On mouseExited of the JPanel i set the bounds of the JPanel to a new
size. However, the sizes do not reflect visually. I have called
invalidate(), validate(), repaint() and none seems to work.
Other than using JSplitPane to create a resizable JPanel, how can I make
this work?
Others have suggested using LayoutManagers but which one and how?
Thank you in advance.
I have the a JDesktopPane and a JPanel added to the CENTER and SOUTH
position of a JFrame respectively.
I would like to dynamically resize the JPanel upon mouseExited like the
Windows TaskBar.
On mouseExited of the JPanel i set the bounds of the JPanel to a new
size. However, the sizes do not reflect visually. I have called
invalidate(), validate(), repaint() and none seems to work.
Other than using JSplitPane to create a resizable JPanel, how can I make
this work?
Others have suggested using LayoutManagers but which one and how?
Thank you in advance.