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
The default layout manager for JFrame
is BorderLayout
.
This means that your components are essentially all been added ontop of each other.
Try changing the layout manager to something like FlowLayout
(for example)...
Take a look at A Visual Guide to Layout Managers and Using Layout Managers for more details.
Also, avoid setSize
where possible, use Window#pack instead
Update
I'd also like to introduce you to Initial Threads which should be used to launch your UI code...