hello i have a layout in which i have four buttons in the west side of my border layout, and when i click on any of button my panel of center layout gets change..
(ie, if i click home, the center of border layout get home panel, when i click register the center of border layout get register panel and so on....)
but the problem is the are appearing only when i m resizing my frame, i mean maximizing my frame..
here is my code:
any time you change components when the parent is visible, you need to add the indicated lines
[container].revalidate();//for swing//<----------------or next line (for awt), not both
[container].repaint();//not always rerquired, safer to include//<------------------
from your description, the panel that changes would be more ideally suited to a CardLayout,
which would make revalidate()/repaint() unnecessary