I\'m fairly new to JFrame and I want to know why my items are not showing up on the window. I know i dont have a ActionHandler but I just want my textfield\'s to show up on
but when i run it i get this:
You get an empty screen because you add the components to the frame after the frame is visible.
setVisible(true)
AFTER adding the components to the frame.So the code should be more like:
panel.add(...);
panel.add(...);
add(panel);
pack();
setVisible(true);