Reputation: 407
I am adding number of small panels in Frame using GridBagLayout as Show and Hidden list.
When adding to show list, pack happens and panel displayed immediately
but when adding to hidden list, pack happens and panel still display until a refresh done.
panel1 panel2
panel1 panel2 [hiding panel2 - is not done immediately]
panel1
panel1 panel2 [showing panel2 - happens immediately]
can anyone help with exact code that i should use..
Thanks in advance.
Upvotes: 0
Views: 439