Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

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
  • 2
1 Solution
you just need to add the component to the container.
eeBlueShadowAuthor Commented:
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 ;)

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now