T
tiewknvc9
Hi thanks for reading.
I have creating a gui that contains a JPanel containing an ImageIcon as
a background and a scrollpane in front of it.
I am trying to update the gui when the user resizes the screen, however
I find that when the user resizes the screen EITHER
1. the Image background does not show up at all
2. The JScrollPane does not move its position,,,,
When the screen is resized I ...
m_pBackImage.invalidate();
validate();
this makes the JScrollPane move at the right time, but makes the
background JPanel not draw...
but if I do this...
validate();
m_pBackImage.invalidate();
then the JPanel image shows and the JScrollPane doesnt move until the
2nd screen resize...
any ideas?
I have creating a gui that contains a JPanel containing an ImageIcon as
a background and a scrollpane in front of it.
I am trying to update the gui when the user resizes the screen, however
I find that when the user resizes the screen EITHER
1. the Image background does not show up at all
2. The JScrollPane does not move its position,,,,
When the screen is resized I ...
m_pBackImage.invalidate();
validate();
this makes the JScrollPane move at the right time, but makes the
background JPanel not draw...
but if I do this...
validate();
m_pBackImage.invalidate();
then the JPanel image shows and the JScrollPane doesnt move until the
2nd screen resize...
any ideas?