|
I have a listener inside Class A, and I want to pass Class A to my Class B inside the listener. Normally I'd just use this, but then I'd get the event that triggered the listener.
Started by they changed my name on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
After 12 years.)
You can add a reference to class A in the constructor for the listener:
class.
|
Set html into |
|
I need to write an arrow listener for my JTextField. if a try with:
public void keyTyped(KeyEvent e) { if (e.getKeyCode() == KeyEvent.VK_DOWN) { } } ...
This is not good.( I think that JTextField is not responding to a special key listener.)
Started by artaxerxe on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Arrow keys.
In your Listener, use keyPressed .
AddKeyListener method provided for every java.awt.Component.
|
Ask your Facebook Friends
|
How do I set up a listener in Silverlight to listen for a javascript event thrown from the host web page?
Started by Dan on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I will be glad....
If it does not answer your question, just ask a follow up .
Please review the card.
This reference card can be found here: http://refcardz.dzone.com/announcements/silverlight2.
Hello,
I have a free reference card that can help with this .
|
|
We're using JBoss 4.22 with portlets. When the listener tag is not in the web.xml the portlet loads, but the listener sessionDestroyed() is never called (obviously). When added the portlet isn't loaded, and there aren't any exceptions or log messages....
Started by Adam on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
:)
Is your listener node, servlets, servlet-mappings, session....
Then the unbound() is called when the session invalidates.
A solution is to use an HttpSession**Binding**Listener and adding the class as an attribute to the session.
Available.
|
|
Is there a better way to have a listener on a java collection than wrap it in a class implementing the observer pattern ?
Started by wj on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm not aware of any "real" Collection implementations with builtin listener/observer.
A DefaultListModel.
|
|
In the javadoc it says that EventListener is
"A tagging interface that all event listener interfaces must extend."
Why is that? What's the significance of making a custom listener implement EventListner? Is there any special handling for EventListner ...
Started by Ran Biron on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It makes the purpose of the interface much not recognise the event if extends EventListener is missing from the Listener..
To use it on my own event listener interfaces as well, though.
|
|
Hi all,
I'm configuring data guard. I want to register the local_listener parameter with two tnsnames: tnsname1 and tnsname2 .
I use `ALTER SYSTEM SET LOCAL_LISTENER='tnsname1','tnsname2';
but it doesn't work. Can anyone help me?
Thanks
Started by Sarith on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
ALTER SYSTEM SET LOCAL_LISTENER='tnsname1';
Then in the tnsnames.ora file configure two listeners SYSTEM SET REMOTE_LISTENER='tnsname2';
tnsname2 = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST exactly what you're trying to do ....
|
|
How do I remove the 'bounds_changed' Event listener in Google Maps API v3 ?
google.maps.event.removeListener(_???_);
Started by mp_ on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
That's because.
As Andrew said, addListener returns a handle which you can use later to remove the listener.
|
|
We have a Java listener that reads text messages off of a queue in JBossMQ. If we have to reboot JBoss, the listener will not reconnect and start reading messages again. We just get messages in the listener's log file every 2 minutes saying it can't connect...
Started by MattGrommes on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you're purely a listener and do no other JMS calls other than connection setup.
|