FancyButton b1 = new FancyButton(
new ImageIcon("images/redcube.gif"),
new ImageIcon("images/redpaw.gif"),
new ImageIcon("images/reddiamond.gif"));
FancyButton b2 = new FancyButton(
new ImageIcon("images/bluecube.gif"),
new ImageIcon("images/bluepaw.gif"),
new ImageIcon("images/bluediamond.gif"));
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container c = f.getContentPane();
c.setLayout(new FlowLayout());
c.add(b1);
c.add(b2);
f.pack();
f.setVisible(true);