[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #11948] [Swing] more then one JTextField cause actionM
From: |
Thomas Zander |
Subject: |
[commit-cp] [bugs #11948] [Swing] more then one JTextField cause actionMap loop. |
Date: |
Sat, 12 Feb 2005 20:03:21 +0000 |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) KHTML/3.3.91 (like Gecko) |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11948>
Summary: [Swing] more then one JTextField cause actionMap
loop.
Project: classpath
Submitted by: zander
Submitted on: Sat 02/12/2005 at 20:03
Category: classpath
Severity: 5 - Average
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
In a Swing UI I have more then one JTextField on screen and if I call
javax.swing.SwingUtilities.updateComponentTreeUI(myFrame);
it ends up in an endless loop on
javax.swing.SwingUtilities.replaceUIActionMap(comp, actionmap) doing a
getParent on the map (line 1113 on current CVS).
Notice that this endless looping only happens on the from the updateUI of the
second JTextField on screen.
See the following runnable testcase that will never go past the
updateComponentTreeUI line. (tested in jamvm 1.2.4
import javax.swing.*;
public class Example2 extends JPanel {
public Example2() {
JTextField sName = new JTextField();
JTextField sCity = new JTextField();
add(sCity);
add(sName);
}
public static void main(String[] args) {
System.getProperties().put("gnu.java.awt.peer.gtk.Graphics","Graphics2D");
final JFrame f = new JFrame();
JPanel p = new Example2();
f.getContentPane().add(p);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
SwingUtilities.updateComponentTreeUI(f);
f.setSize(new java.awt.Dimension(400, 500));
f.setVisible(true);
}
});
}
}
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11948>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bugs #11948] [Swing] more then one JTextField cause actionMap loop.,
Thomas Zander <=