import java.awt.Color;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.BevelBorder;
public class JFrameSample extends JFrame{
private JPanel panelTree = new JPanel();
private JPanel panelImage = new JPanel();
private JPanel panelWhatEver = new JPanel();
public JFrameSample(){
initGui();
}
private void initGui(){
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLayout (null);
this.setSize (800, 600);
this.panelTree.setBounds (25, 25, 350, 250);
this.panelImage.setBounds (25, 300, 350, 250);
this.panelWhatEver.setBounds(425, 25, 350, 525);
this.panelTree.setBorder(BorderFactory.createBevelBorder (BevelBorder.RAISED, Color.LIGHT_GRAY, Color.GRAY));
this.panelImage.setBorder(BorderFactory.createBevelBorder (BevelBorder.RAISED, Color.LIGHT_GRAY, Color.GRAY));
this.panelWhatEver.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED, Color.LIGHT_GRAY, Color.GRAY));
this.add(panelTree);
this.add(panelImage);
this.add(panelWhatEver);
}
public static void main(String[] args) {
new JFrameSample().setVisible(true);
}
}