awt Container painting

Posted on 2005-03-13
Medium Priority
Last Modified: 2010-03-31
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
Question by:eeBlueShadow
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 92

Accepted Solution

objects earned 1353 total points
ID: 13531438
you just need to add the component to the container.
LVL 10

Author Comment

ID: 13536083
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 :)
LVL 92

Expert Comment

ID: 13538794
Yes not much needs painting if the size is zero ;)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question