Posted By:
Finlay_McWalter
Posted On:
Wednesday, June 20, 2001 09:45 PM
Well, before we get to the specifics of your question, can I ask you to clarify a couple of things:
- What "ImageComponent" do you mean - the only one I know of is in Java3D - and that certainly isn't a subclass of java.awt.Component. Are you really using java3d, or are you just trying to draw a regular image?
- I'm very surprised that you're using java.awt.TextComponent directly - it's almost universal that one uses one or other of its subclasses (TextArea and TextField). Which are you using, or are you using something else?
It seems very unwise to be calling setBounds on a control in a paint method - you should only be painting stuff in a paint method. Instead you should position both components in the init method, and then leave them in that same position.