Hello. Say I had a panel that had 6 JButtons on it and half way
through the program I changed it so that there were 8 buttons there,
how to I get the gui to refresh itself so that the button panel apears
normal rather than just a mess?
at the moment the only way I can do it is by resizing the frame a
little
thanks!
>Hello. Say I had a panel that had 6 JButtons on it and half way
>through the program I changed it so that there were 8 buttons there,
[quoted text clipped - 5 lines]
>
>thanks!
Try validate();
http://mindprod.com/jgloss/validate.html
stinkinrich88@googlemail.com - 04 Mar 2007 16:04 GMT
> >Hello. Say I had a panel that had 6 JButtons on it and half way
> >through the program I changed it so that there were 8 buttons there,
[quoted text clipped - 9 lines]
>
> http://mindprod.com/jgloss/validate.html
Perfect! thanks a lot!!
Knute Johnson - 04 Mar 2007 18:22 GMT
>>> Hello. Say I had a panel that had 6 JButtons on it and half way
>>> through the program I changed it so that there were 8 buttons there,
[quoted text clipped - 8 lines]
>
> Perfect! thanks a lot!!
That assumes that you won't have problems with your layout manager. You
might have to call pack() as well.

Signature
Knute Johnson
email s/nospam/knute/