Top "Listener" questions

An object that reacts to an event that it is 'listening' for.

Java: What's the difference between ActionEvent and ItemEvent on a JRadioButton?

They're both raised once after the mouse button is released and both can have all the information available on the …

java swing listener jradiobutton
Internal error using Network Service Discovery in Android

During the first implementation of the NSDManager using the examples and the tutorial on the developer page , the application successfully …

android networking listener discovery service-discovery
Fire event on AsyncTask finished

My app has a login activity and it checks the credentials via an internet website. To do so, I (have …

android interface android-asynctask listener android-event
How to know if my SensorManager has a registered Sensor

I'm using a sensor for my Android Application. I register the sensor with a line of code: mySensorManager.registerListener(this, …

android listener registration sensors sensormanager
How do I pass instances of the main class to multiple listeners?

So, I've been working on a plugin. It was going great, until I stumbled on an issue. I'm using separate …

java listener bukkit
Android: How to create a receiver that listen any changes of system settings?

I'm trying to create a BroadCast receiver that listen any changes of system settings to update a UI. I wrote …

android settings listener receiver
Android: Two different events for single tap and long press/double tap?

I am trying to develop a feature where a single tap of an item will call an Intent to go …

android events listener tap
In Java/Swing, is there a way to legally "attempt to mutate in notification"?

I was wondering if there is some sort of magic I can use to get around an IllegalStateException and allow …

java swing notifications listener mutation
Boolean Value Change Listener Java

I need a listener that will constantly check if a static boolean value has been changed so that I can …

java boolean listener valuechangelistener