ho to add multiple panels

hi can any one give me an example program to add 4panels in one frame help me plz
[95 byte] By [jyothimsa] at [2007-10-3 5:23:10]
# 1
frame.setLayout(new GridLayout(2, 2));frame.add(panel1);frame.add(panel2);frame.add(panel3);frame.add(panel4);
hiwaa at 2007-7-14 23:30:15 > top of Java-index,Desktop,Core GUI APIs...
# 2
Read the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]How to Use Layout Managers[/url]. A panel is just like any other component. it can be added anywhere you see any component in the tutorial.
camickra at 2007-7-14 23:30:15 > top of Java-index,Desktop,Core GUI APIs...