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.
1.4.0 merlinFixed

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
(Review ID: 54753)

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin merlin-beta FIXED IN: merlin merlin-beta INTEGRATED IN: merlin

WORK AROUND Name: dbT83986 Date: 04/01/99 None ======================================================================

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