Tiens un petit code qui te permet d'avoir un bouton rond, par contre il te reste a completer quelques trucs (paintBorder etc) mais de maniere générale ca se fait comme ca
import java.awt.*;
import javax.swing.*;
public class BoutonRond extends JButton
{
public BoutonRond (String label)
{
super(label);
this.setContentAreaFilled(false);
}
protected void paintComponent(Graphics g)
{
g.setColor(getBackground());
g.fillOval(0, 0, this.getSize().width-1, this getSize().height-1);
super.paintComponent(g);
}
public static void main(String[] args)
{
JFrame frame = new JFrame();
JButton button = new BoutonRond ("Boutton");
button.setBackground(Color.BLUE);
frame.getContentPane().add(button);
frame.setSize(200, 200);
frame.setVisible(true);
}
}