Solving Common Event-Handling Problems
Trail: Creating a GUI With JFC/Swing
Lesson: Writing Event Listeners

Solving Common Event-Handling Problems

This section discusses problems that you might encounter while handling events.

Problem: I'm trying to handle certain events from a component, but the component isn't generating the events it should.

Problem: My combo box isn't generating low-level events such as focus events.

Problem: The document for an editor pane (or text pane) isn't firing document events.

If you don't see your problem in this list, see Solving Common Component Problems.

Previous page: Listener API Table
Next page: Questions and Exercises: Writing Event Listeners