How to repaint a JPanel.

HiI am building a GUI in which i have a fixed panel.........in this panel there is a jpanel....i want to change its contents at run time............like at first there are buttons when someone presses these buttons.....the panel changes to a textbox for instance...........any ideas
[296 byte] By [muneeb] at [2007-9-30 22:15:45]
# 1
Maybe [url= http://java.sun.com/j2se/1.4.2/docs/api/java/awt/CardLayout.html]CardLayout[/url] and [url= http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Container.html#remove(java.awt.Component)]public void remove(Component comp)[/url] will help ...
thomas.behr at 2007-7-7 11:28:54 > top of Java-index,Desktop,Core GUI APIs...