I've put quite a few objects into this JFrame
. however many of them do not appear until I hover them mainly the button as well as the JTextField
. I only included the JSpinner
components so that it wasn't so long. Is there anything in my spinners or lacking with my spinners that would make them not appear?
I've stripped it down alot so that it is just one textfield. Still nothing shows up. I've put everything in panels, however still nothing shows up.
public static void screen() {
JFrame myFrame = new JFrame("Yore");
myFrame.setAlwaysOnTop(true);
myFrame.setResizable(false);
myFrame.setForeground(Color.BLACK);
myFrame.setSize(300,365);
myFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
myFrame.setVisible(true);
myFrame.setBackground(Color.WHITE);
JPanel panel = new JPanel();
myFrame.setContentPane(panel);
JTextField Username = new JTextField();
Username.setText("Username");
Username.setColumns(10);
panel.add(Username);
}