View Full Version : Help Displaying Components Correctly

12-17-2007, 11:17 PM
Hi, I haven't used Swing components in awhile, and for some reason when I add them to my applet they aren't visible, but when I mouse over the button or click the textbox they show up? My mouse cursor changes to the textbox one when I mouse over the textbox as well, so they're visible and enabled, just not painting or something?

My simple code:

textName = new JTextField("Name", 15);
button = new JButton("Button");

Nothing in paint, that's all I want to do, I must be missing something simple.

Thanks for your help!