Forums Register Login

Urgent Pls help - Repainting GUI

+Pie Number of slices to send: Send
I'm currently building a GUI and in the main window, i add panels in the center(BorderLayout). I have two panels and depending on a button, i display one of them.
When the switch has to happen, i remove the first and display the other. But during this i am facing refresh problems.
Can anybody guide what to do as i am confused about validate, invalidate, setVisible. What to use.
Any help will be greatly appreciated.
Garry
+Pie Number of slices to send: Send
Take a look at CardLayout. It sounds like your life might
be made easier using that rather than manually handling
transitions beween these panels.
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 542 times.
Similar Threads
my little problem on netbeans
Multiple frames from a parent frame
ide
Adding Panels in Frame or in a Panel
Urgent Pls Help - Painting
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:50:58.