That Bagels,to be honest, I'm not sure about, my JButton experience only extends to text buttons, something like:-
Visit Suns forums, for a more in depth answer... That's the first place I used to go when I played with Java! :)
Dabz
import javax.swing.*; import java.awt*; public class MyButton extends JFrame { public MyButton(){ super("Button"); setsize(..) setdefaultcloseoperation(..) setVisible(..) anythingelse() flowlayout = flow = new flowlayout(); setlayout(...) JButton clickhere = new JButton("Click Here") add(clickhere) setvisible(...) } public static void main(...blah) { MyButton mbutton = new MyButton }
Visit Suns forums, for a more in depth answer... That's the first place I used to go when I played with Java! :)
Dabz