Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4226238

getUI() not implemented by all classes that extend JComponent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.2.0
    • client-libs
    • merlin
    • generic
    • generic



      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)
      ======================================================================

            svioletsunw Scott Violet (Inactive)
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: