Trail: Creating a GUI With JFC/Swing
Lesson: Writing Event Listeners
Solving Common Event-Handling Problems
Home Page > Creating a GUI With JFC/Swing > 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

Discuss
We welcome your participation in our community. Please keep your comments civil and on point. You may optionally provide your email address to be notified of replies — your information is not used for any other purpose. By submitting a comment, you agree to these Terms of Use.