[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #11917] [Swing] plaf uninstall should not try to remov
From: |
Thomas Zander |
Subject: |
[commit-cp] [bugs #11917] [Swing] plaf uninstall should not try to remove UI items |
Date: |
Thu, 10 Feb 2005 12:08:19 +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=11917>
Summary: [Swing] plaf uninstall should not try to remove UI
items
Project: classpath
Submitted by: zander
Submitted on: Thu 02/10/2005 at 12:08
Category: classpath
Severity: 5 - Average
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
I get a nullpointerexception in my class that extends JTable and implements
setFont() to do something with that font since the uninstall from the plaf
does a setFont(null).
Exception during event dispatch:
java.lang.NullPointerException
at uic.widgets.UICTable.setFont (UICTable.java:253)
at javax.swing.plaf.basic.BasicTableUI.uninstallDefaults
(BasicTableUI.java:212)
at javax.swing.plaf.basic.BasicTableUI.uninstallUI
(BasicTableUI.java:246)
at javax.swing.JComponent.setUI (JComponent.java:2200)
at javax.swing.JTable.setUI (JTable.java:1730)
at javax.swing.JTable.updateUI (JTable.java:1735)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:614)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
at javax.swing.SwingUtilities.updateComponentTreeUI
(SwingUtilities.java:610)
All items that have UIResource equivalents (FontUIResource etc) should not be
set to 'null', but to sane defaults.
Or, in other words, the UI should have defaults (and know what to do with
'null' values), not the widget.
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11917>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bugs #11917] [Swing] plaf uninstall should not try to remove UI items,
Thomas Zander <=