Link to home
Start Free TrialLog in
Avatar of eeBlueShadow
eeBlueShadow

asked on

awt Container painting

Hi all,

What's the minimum I need to do to a get a Container to display a Component?

If it depends on a lot of things, then I'll give more details, but I think my problem is just a basic misunderstanding of the concept of drawing things
ASKER CERTIFIED SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of eeBlueShadow
eeBlueShadow

ASKER

Ah, found my problem

I missed this line in the documentation:

For performance reasons, Components with zero width or height aren't considered to need painting when they are first shown, and also aren't considered to need repair

Maybe I didn't make the question quite clear enough, but I wanted an answer which included all the small things like making the component visible and things like that

Thanks anyway :)
Yes not much needs painting if the size is zero ;)