United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4226238 : getUI() not implemented by all classes that extend JComponent

Details
Type:
Bug
Submit Date:
1999-04-02
Status:
Resolved
Updated Date:
2000-02-24
Project Name:
JDK
Resolved Date:
2000-02-24
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.4.0 (merlin)

Related Reports

Sub Tasks

Description

Name: dbT83986			Date: 04/01/99


The getUI() method has not been implemented by all classes
that extend JComponent. This should be done consistently
as stated in the JavaDoc I'm including from JComponent.

* <p>
* Additionaly JComponent subclasses must provide a getUI
* method that returns the correct type, e.g.
* <pre>
* public SliderUI getUI() {
*   return (SliderUI)ui;
* }
* </pre>

JPanel is a good example of a class that lacks this
implementation.
(Review ID: 54753)
======================================================================

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin
merlin-beta

FIXED IN:
merlin
merlin-beta

INTEGRATED IN:
merlin


                                     
2004-06-14
WORK AROUND



Name: dbT83986			Date: 04/01/99


None
======================================================================
                                     
2004-06-11
EVALUATION

There are a handful of classes, including JPanel, that need the getUI method.
scott.violet@eng 1999-09-22

JPanel needs getUI and JLayeredPane needs a UI delegate and that should be it.
scott.violet@eng 2000-02-02

JPanel now has getUI/setUI. JLayeredPane does not have a UI delegate as it is extended by other classes that do have UI delegates.
scott.violet@eng 2000-02-18
                                     
2000-02-02



Hardware and Software, Engineered to Work Together