Lost « Focus « Java Swing Q&A





1. Detect whether FocusEvent of component is lost or gained    stackoverflow.com

I implementing a EventQueue and get notified when AWTEvents are send. I wait till instances of FocusEvent are send to the dispatchEvent methode. The FocusEvent by itself does not have a methode to ...

2. Using a JFrame's focus (being lost) to stop recording a screen cast?    stackoverflow.com

In my Swing application, I'm using a custom module to record a screen cast. However, I'm a bit hung up on when to force the recording to stop. Right now, I check ...

3. Swing focus lost inputverifier    stackoverflow.com

I have a frame with some JTextFields on it. When the user tabs out from a JTextField, I execute custom logic in the FocusTraversalPolicy, which sets some properties and based on ...

4. Focus Lost - Getting called twice.    coderanch.com

5. Focus Lost throws error    coderanch.com

Hi all, I am getting a very annoying error as a result of using a focus listener on one of my textfields. I have a focus listener on a textfield that causes an update elsewhere on my GUI when it loses focus. My problem occurs when the focus event is fired because I select one of my menu items. When the ...

6. Focus Lost problem    coderanch.com

This is a known problem in Java 1.4.x and probably other versions as well. Java generates an extra focus lost event on the first field if you go from one field to the next one and force focus back to the first one. The event happens when the second field looses focus. My trick is to set the background of the ...

7. lost focus    coderanch.com

noo..sorry for the last one... that was a similar issue..its resolved now...my fault actually i have to use labels because i am using an image as icon now i have to change the image at runtime pressing a button...but there are many labels so focus needs to be given to the label to be changed...but there is no focus for a ...