Hello in AWT to add a button you add this code :
Button b = new Button("Button");
add(b); // and in swing you add a J before the Button.
This makes a very boaring button but you can change the buttons background by setting a background color to it.
The question i have is , is there a way I can make my own button called say OButton and when ever i add the code obutton = o new obutton("Orange") it will have a orange background?
Thanks!! This would have to have all the same events as a Button (Everything the same but different bg color)