classpath
[Top][All Lists]
Advanced

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

Re: javax.swing.JTextField


From: Roman Kennke
Subject: Re: javax.swing.JTextField
Date: Wed, 21 Dec 2005 10:25:06 +0100

Hi Christopher,

> > I tested with current CVS HEAD and there it seems to work. And I believe,
> > nobody worked on that in the last weeks, so it should at least be in 0.19
> > too. You can find the associated sourcecode in javax/swing/JTextField.java
> > starting at line 95 (the notifyAction stuff).
> 
> I apologize; I thought that the fileTextField of JFileChooser (in the Metal
> plaf) had an action listener (as it should), but I looked more closely and
> it doesn't. When I added it, the action event was indeed fired.


> (In passing, I had read the code that you referred to; I simply didn't
> know enough about the way keymaps were installed to recognize it as such.)

Yeah, this area is a little bit complicated and confusing.

> What's strange is that JFormattedTextField, which inherits from JTextField,
> doesn't fire the action event... Oh, I see, it specifically overrides the
> action map. Is it correct that JFormattedTextField's getActions() just
> returns null, rather than invoking its super-class, or at least providing
> the same action for the enter key?

It should definitely call super.getActions() and add some actions on its
own there. I'll fix this.

Thank you for reporting and helping,
Roman

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]