Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about focus event in awt 1.1


  • From: Sunil.Mishra@xxxxxx (Mishra, Sunil)
  • Subject: Question about focus event in awt 1.1
  • Date: Wed, 29 Sep 1999 11:26:39 -0400

confused...
You add the FocusListener to the TextField. Then how do you expect the focus
to be on the Button ??

Anyway, each event has the source in it. You can get from that..

public void focusLost(FocusEvent evt)
{
	Component comp = (Component)evt.getSource();
}

Sunil Mishra
Goldman Sachs,
sunilmishra@xxxxxxxxx
201-459-1185(R)
212-357-3922(O)



> -----Original Message-----
> From:	Alexandrescu Stefan Bogadan [SMTP:abstefan@xxxxxxxxxxxx]
> Sent:	Wednesday, September 29, 1999 11:51 AM
> To:	advanced java
> Subject:	Question about focus event in awt 1.1
> 
> Hello all ,
>    If i have a window that have many textfileds and some buttons . all
> the textfileds have an focus lost listener . How can I know from the
> focus listener adapter what button was pressed.
> Thank you very much.
> 
> 
> ---
> To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
> To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx

---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx