Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
12-17-2007, 11:17 PM #1
- Join Date
- Feb 2006
- Thanked 0 Times in 0 Posts
Help Displaying Components Correctly
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!