A Simple Example Using JFC
JPanel my_panel = new JPanel();
my_panel.setLayout(new GridLayout(3,3));
ImageIcon icon = new ImageIcon(i+".gif");
JButton jb = new JButton(icon);
jb.setToolTipText(i+".gif");
getContentPane().add(my_panel);
my_panel.setBorder(BorderFactory.createEtchedBorder());
- Bevel, Compound, Empty, Etched,
- Line, Matte, Soft, Titled.