JDK-4226238 : getUI() not implemented by all classes that extend JComponent
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1999-04-02
  • Updated: 2000-02-24
  • Resolved: 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 Availability Release.

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

WORK AROUND Name: dbT83986 Date: 04/01/99 None ======================================================================
11-06-2004

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
02-02-2000