Results 1 to 2 of 2
- 08-21-2011, 01:56 AM #1
Swing components are not well-displayed
Hello. I don't know if this has ever happened to any of you or not, but it's draving me crazy because I have no idea where's the source of the problem... The thing is that ALL my swing components, such as JTextFields, JButtons, JComboBoxes, JRadioButtons, are not displayed at once in the applet; but, when I get the cursor over the swing component's site, it appears (not with JLabels though). It has nothing to do with the Layout or the situation of the component's, nor the execution environment of the applet, because it happens in the Appletviewer, in Google Chrome, and in Mozilla Firefox, nor the kind of component. I'll show you some screenshoots of a JPanel with a GridLayout.
Getting the cursor over it for the first time:
After some time clicking:
All I can arrive to see (it stills missing the top row and some JLabels):
Hope you know how to solve this. I don't think it's something related with the code, because it even happens with the most simple JButton.
If you need anything else just ask me.
- 08-21-2011, 02:37 AM #2Senior Member
- Join Date
- Jul 2009
- Rep Power
This happens when you add components to a top level container AFTER the container is visible.
Hope you know how to solve this. I don't think it's something related with the code, because it even happens with the most simple JButton. If you need anything else just ask me.
- By ne2000 in forum EclipseReplies: 2Last Post: 06-23-2008, 08:00 AM
- By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:04 PM
- By MacNstuff in forum AWT / SwingReplies: 1Last Post: 02-06-2008, 01:59 AM
- By archanajathan in forum AWT / SwingReplies: 3Last Post: 11-05-2007, 09:34 AM