Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Swing objects and when they are loaded

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
I have another problem. When you create a JPanel and say you add JComponents to it. How do you know when the JComponent is loaded?. I have added JComponents to A JPanel and then I call remove(2) on this JPanel. I know that there is JComponent in this position as I have added six. However this doesn't help because I get null pointer exception as the JComponent isn't loaded yet. When you add a JComponent to a JPanel is there a way to wait until its there before doing anything else?.

Chris

PS I also have this problem in returning the dimensions of an object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top