I have made a JButton:
JButton button = new JButton("Button");
Then added it to a JPanel:
panel.add(button, BorderLayout.CENTER);
Photo of the Button:
I have noticed 2 different types of JButtons:
I like the button titled "OK", is there any way I can set this as the preferred style of the button? Or if this can not be done, is there a way to make a panel with a fixed height, and add it to the center of another panel?
Thanks.