JDK-4226238 : getUI() not implemented by all classes that extend JComponent
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: javax.swing
  • Priority: P3
  • Affected Version: 1.2.0
  • OS: generic
  • CPU: generic
  • Submit Date: 1999-04-02
  • Updated Date: 2000-02-24
  • Resolved Date: 2000-02-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
1.4.0 merlinResolved
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