public static void main(String args[]) { AudioPlayer Core = new AudioPlayer(); Core.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Core.setSize(400, 200); Core.setLocationRelativeTo(null); Core.setResizable(false); Core.setBackground(Color.BLACK); // not working, why? Core.setVisible(true); Core.setTitle("Audio Player"); }