Perico,
in Swing there are several Look and feels available. You're expecting a
Windows type look and feel on your button. Unless this is the selected look
and feel for you swing application nothing will happen. The Metal look and
feel is the default in Swing. Depressing a focused button is effected by
using the space bar in Metal.
regards,
Neil

-----Original Message-----
From: Perico [mailto:[EMAIL PROTECTED]]
Sent: 23 April 2001 23:40
To: [EMAIL PROTECTED]
Subject: Focus in a JButton.


Despite of having the focus in a JButton, I can't activate its 
associated action by pressing <ENTER> in it.

How can fix this problem?.  Is it a Java bug or something similar?.

Thanks a lot.

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing


**********************************************************************
This email is intended only for the addressee. This email
and any files transmitted with it may contain confidential
or privileged information. If you are not the named
addressee or the person responsible for delivering the
message to the named addressee, please contact 
[EMAIL PROTECTED]

This email has been scanned by MIMEsweeper.

Visit the Prebon Marshall Yamane web site at 
http://www.prebon.com
**********************************************************************
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to