I am working on a main menu for a program and i am finding it hard to apply a .png file to my JButton, this is where i have arrived
public class Menu extends JFrame implements ActionListener {
public static void main(String[] args) {
Color b = new Color(0,89,255);
Color t = new Color(255,0,0);
Color bttn = new Color (255,255,0);
final JFrame frame = new JFrame ("Main Menu");
frame.setVisible(true);
frame.setSize(1000,750);
frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
frame.setLocationRelativeTo(null);
frame.setLayout(null);
frame.setBackground(b);
JButton start = new JButton ("Start");
start.setBounds(300, 300, 150, 75);
start.setForeground(t);
JButton exit = new JButton ("Exit");
exit.setBounds(550, 300, 150, 75);
exit.setBackground(bttn);
exit.setForeground(t);
Pls leave any answer as i am trying to hurry