Previous | Next | Trail Map | Creating a User Interface | Using Components, the GUI Building Blocks

Common Component Problems (and Their Solutions)

Problem: How do I increase or decrease the number of components in a container? Problem: My window never shows up! Problem: My component never shows up! Problem: My custom component doesn't get updated when it should. Problem: My component isn't getting XYZ event. Problem: My application doesn't get a WINDOW_DESTROY event, so I can't close my window (or quit the application or whatever)! Problem: All your examples are of applets. How do I apply them to applications? Problem: Whenever I execute a Java application with a GUI, I get this annoying error message:
Warning:
    Cannot allocate colormap entry for default background
If you don't see your problem in this list, see Common Layout Problems(in the Creating a User Interface trail) and, for custom components, Common Graphics Problems(in the Creating a User Interface trail). You might get some insight into your problem by reading Details of the Component Architecture.


Previous | Next | Trail Map | Creating a User Interface | Using Components, the GUI Building Blocks