its a rollover button.. but when i have rollover the button the second image is aligned to the left... wanted to know how i could i align this centered..
merc = new JButton(new ImageIcon("Mercedes_logo.jpg"));
ventan.getContentPane().add(merc);
merc.setRolloverIcon(new ImageIcon("carsmercedesbenz.gif"));