barrett777
12-17-2007, 10: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");
this.add(textName);
this.add(button);
Nothing in paint, that's all I want to do, I must be missing something simple.
Thanks for your help!
My simple code:
textName = new JTextField("Name", 15);
button = new JButton("Button");
this.add(textName);
this.add(button);
Nothing in paint, that's all I want to do, I must be missing something simple.
Thanks for your help!