Abstract Window Toolkit FAQ's

Started by sajiv, Jul 20, 2008, 03:47 PM

Previous topic - Next topic

sajiv

Abstract Window Toolkit FAQ's


*  What are the Component and Container classes?
    * How do I control the positioning of my interface components?
    * What are inset values, and how do I set them?
    * How do I change the thickness of the line?
    * Can I exert complete control over the size and placement of components in my interface?
    * What do the invalidate and validate methods do?

    * Can I add new AWT components to objects already visible on the screen?
    * How can I tab between components?
    * Can I add the same component to more than one container?
    * When I start a mouse drag inside a Component, and go outside the Component, still dragging, the mouse events still get sent to the Component, even though I am outside it. Is this a bug?
    * I use add(Component) to add Components to the Container. Is there any way to explicitly set the z-order of these Components?

    * How can I get the dimensions and resolution of the screen?
    * How can I place an outline around a group of components to show explicitly how the components are grouped?
    * What are those preferredSize() and minimumSize() methods in Component?
    * Why isn't my component showing up at all? Or in some cases not until I resize the main window?

    * When I change some component (e.g. a new label on a button) I don't see the change on the screen immediately even if I repaint().
    * Clipping.. How tod do?
    * What are AWT peers?
    * What are peer "classes"?
    * When are peers created and destroyed?

:acumen