home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / javax / swing / plaf / basic / BasicViewportUI.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  859 b   |  35 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import javax.swing.JComponent;
  4. import javax.swing.LookAndFeel;
  5. import javax.swing.plaf.ComponentUI;
  6. import javax.swing.plaf.ViewportUI;
  7.  
  8. public class BasicViewportUI extends ViewportUI {
  9.    private static ViewportUI viewportUI;
  10.  
  11.    public static ComponentUI createUI(JComponent var0) {
  12.       if (viewportUI == null) {
  13.          viewportUI = new BasicViewportUI();
  14.       }
  15.  
  16.       return viewportUI;
  17.    }
  18.  
  19.    public void installUI(JComponent var1) {
  20.       super.installUI(var1);
  21.       this.installDefaults(var1);
  22.    }
  23.  
  24.    public void uninstallUI(JComponent var1) {
  25.       super.uninstallUI(var1);
  26.    }
  27.  
  28.    protected void installDefaults(JComponent var1) {
  29.       LookAndFeel.installColorsAndFont(var1, "Viewport.background", "Viewport.foreground", "Viewport.font");
  30.    }
  31.  
  32.    protected void uninstallDefaults(JComponent var1) {
  33.    }
  34. }
  35.