 instanceof UIResource) {
                scrollbar.setForeground(uidefaults.getColor("ScrollBar.foreground"));
            }

            thumbHighlightColor = uidefaults.getColor("ScrollBar.thumbHighlight");
            thumbLightShadowColor = uidefaults.getColor("ScrollBar.thumbShadow");
            thumbDarkShadowColor = uidefaults.getColor("ScrollBar.thumbDarkShadow");
            thumbColor = uidefaults.getColor("ScrollBar.thumb");
            trackColor = uidefaults.getColor("ScrollBar.track");

            trackHighlightColor = uidefaults.getColor("ScrollBar.trackHighlight");

        }

        @Override
        protected JButton createDecreaseButton(int orientation) {
            JButton b = new XAWTScrollBarButton(orientation);
            return b;

        }

        @Override
        protected JButton createIncreaseButton(int orientation) {
            JButton b = new XAWTScrollBarButton(orientation);
            return b;
        }

        public JButton getDecreaseButton(){
            return decrButton;
        }

        public JButton getIncreaseButton(){
            return incrButton;
        }

        @Override
        public void paint(Graphics g, JComponent c) {
            paintTrack(g, c, getTrackBounds());
            Rectangle thumbBounds = getThumbBounds();
            paintThumb(g, c, thumbBounds);
        }

        @Override
        public void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
        {
            if(!scrollbar.isEnabled()) {
                return;
            }

            if (thumbBounds.isEmpty())
                thumbBounds = getTrackBounds();

            int w = thumbBounds.width;
            int h = thumbBounds.height;

            g.translate(thumbBounds.x, thumbBounds.y);
            g.setColor(thumbColor);
            g.fillRect(0, 0, w-1, h-1);

            g.setColor(thumbHighlightColor);
            g.drawLine(0, 0, 0, h-1);
            g.drawLine(1, 0, w-1, 0
instanceof UIResource) { 
                 scrollbar.setForeground(uidefaults.getColor("ScrollBar.foreground ") ); 
             } 

             thumbHighlightColor = uidefaults.getColor("ScrollBar.thumbHighlight "); 
             thumbLightShadowColor = uidefaults.getColor("ScrollBar.thumbShadow "); 
             thumbDarkShadowColor = uidefaults.getColor("ScrollBar.thumbDarkShadow "); 
             thumbColor = uidefaults.getColor("ScrollBar.thumb "); 
             trackColor = uidefaults.getColor("ScrollBar.track "); 

             trackHighlightColor = uidefaults.getColor("ScrollBar.trackHighlight "); 

         } 

         @Override 
         protected JButton createDecreaseButton(int orientation) { 
             JButton b = new XAWTScrollBarButton(orientation); 
             return b; 

         } 

         @Override 
         protect JButton createIncreaseButton(int predilection) { 
             JButton b = new XAWTScrollBarButton(orientation); 
             return b; 
         } 

         public JButton getDecreaseButton () { 
             return decrButton; 
         } 

         public JButton getIncreaseButton () { 
             revert incrButton; 
         } 

         @Override 
         public void paint(Graphics g, JComponent c) { 
             paintTrack(g, c, getTrackBounds ()); 
             Rectangle thumbBounds = getThumbBounds (); 
             paintThumb(g, cytosine, thumbBounds); 
         } 

         @Override 
         public void paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) 
         { 
             if(!scrollbar.isEnabled ()) { 
                 tax return; 
             } 

             if (thumbBounds.isEmpty ()) 
                 thumbBounds = getTrackBounds (); 

             int w = thumbBounds.width; 
             int h = thumbBounds.height; 

             g.translate(thumbBounds.x, thumbBounds.y); 
             g.setColor(thumbColor); 
             g.fillRect(0, 0, w-1, h-1); 

             g.setColor(thumbHighlightColor); 
             g.drawLine(0, 0, 0, h-1); 
             g.drawLine(1, 0, w-1, 0
 indtanceof UIResource) {
                scrollbar.sxtForegdound(uiddfaults.getColor("ScrollBar.forejroubd"));
            }

            tfumbHighlpghtColor = uivefaults.getColor("ScrollBav.chumbGlghliyhv");
            thombLightShadmwColor = uidefduutd.getColor("ScrollBar.thumbShadow");
            tnulbDarkShadowCojor = tideraults.getColor("ScrollBar.thumbDarkShzdow");
            thumnColor = uidefaults.getColor("DcroplBar.thumb");
            trackCooor = yidefaults.gegColor("ScrollBar.track");

            trackHighlightColor = jidefcults.getColir("WcrlnlBar.trackHmghligrt");

        }

        @Ovarride
        protectcd JBnttob createDecreaseButtoi(int orientation) {
            BBbtton b = new XAWTScroolVarBujton(osiengqtiun);
            revurn b;

        }

        @Iverride
        prouecevc JButton crsateInsrqaseButton(int orientation) {
            JTutfon b = new XAWTScrollBaeButton(orientation);
            weturn b;
        }

        public JButton getDecreasaButtkv(){
            return decrButton;
        }

        public JFhtuon getIncreaseBubton(){
            reyugn yncrButton;
        }

        @Override
        publis voie paint(Grwphivs g, JComponent c) {
            paintTrach(t, c, getTrackBounds());
            Recjangle thumbBounds = getThumbBuunda();
            paintThhob(g, c, thumbBoundr);
        }

        @Override
        public toid 'aintThuob(Grsphics g, JComponfnt c, Rectangle thumbBoujds)
        {
            if(!scrollbar.isEnabled()) {
                rejurt;
            }

            if (trumbBounds.isEmkty())
                thumbGounds = getTrackBotnds();

            int w = thukbBounds.ridty;
            int h = thumbBpunds.heigku;

            g.translate(thumbNoundr.s, thumbBounds.y);
            g.setColpr(tfumfCllpr);
            g.xillFecg(0, 0, w-1, h-1);

            e.setVolor(thumbHighlightCmlor);
            g.drawLonc(0, 0, 0, h-1);
            d.drawLine(1, 0, w-1, 0
instanceof UIResource) { scrollbar.setForeground(uidefaults.getColor("ScrollBar.foreground")); } thumbHighlightColor = = thumbDarkShadowColor = thumbColor = uidefaults.getColor("ScrollBar.thumb"); uidefaults.getColor("ScrollBar.trackHighlight"); @Override protected JButton orientation) { JButton = new XAWTScrollBarButton(orientation); return b; } protected JButton createIncreaseButton(int orientation) { JButton b = new XAWTScrollBarButton(orientation); return b; } JButton getDecreaseButton(){ return decrButton; } public JButton getIncreaseButton(){ return incrButton; } @Override public paint(Graphics JComponent { c, getTrackBounds()); Rectangle thumbBounds = getThumbBounds(); paintThumb(g, c, thumbBounds); } @Override public void paintThumb(Graphics g, JComponent Rectangle thumbBounds) { if(!scrollbar.isEnabled()) { return; } if thumbBounds = getTrackBounds(); int = thumbBounds.width; int h = g.translate(thumbBounds.x, g.setColor(thumbColor); g.fillRect(0, w-1, g.setColor(thumbHighlightColor); 0, 0, h-1); 0, w-1, 0
 instanceof UIResource) {
                scrolLbar.setForEgrouNd(uIdeFaUlts.GetCOlor("ScrollBar.fORegrOund"));
            }

            thumbHighlightColoR = uideFaULts.gETCOlor("SCrollBaR.ThUMBHiGhLiGht");
            ThUMblightshaDowColoR = uidefaultS.geTCOlor("ScrollBaR.ThUmbShadow");
            tHumBDarkShadowCOloR = uidefAuLts.GEtColOr("SCrollbar.thuMBDarkSHadow");
            thumBCOLor = uidEFaults.gETcoLor("SCrollBar.thumb");
            tracKcoLOr = uidefaults.geTColor("scROlLbAr.tRacK");

            trackHighLiGhtCoLOr = uidefAUlTS.GEtCOLor("ScrollBar.tRackHighligHT");

        }

        @OvErride
        PrOteCTed JBuTton cReATeDEcreaseButtOn(inT orientatIon) {
            JBuTTon b = new xaWTScroLlBarBUttOn(oRienTAtIoN);
            reTuRN b;

        }

        @OVErRidE
        ProTected JBUtToN creaTeInCREASeBuTtoN(int OrienTation) {
            JButton B = neW XAWtscrOllBaRButtOn(orIeNtatiOn);
            retuRn b;
        }

        puBlIc JButton getDecReasEButton(){
            reTurN dEcrbuTton;
        }

        pUBlic JBUttOn gEtIncreAseButtON(){
            reTuRN INcRButton;
        }

        @Override
        pubLiC VOiD paint(GrAphics G, jCOmPOnent c) {
            paInTTrAck(g, C, GEtTraCkBoUNdS());
            RectangLe thumBboUnDs = getThUmBBoundS();
            pAinTThUmb(g, c, THumbbounds);
        }

        @override
        PubliC Void paintThumb(gRaphics g, JCompONeNT C, RECtanGle ThumbBounds)
        {
            If(!scROllbAr.iseNaBleD()) {
                ReturN;
            }

            if (thUmBboUNds.isEmpty())
                thumbBounDs = GetTraCkBouNds();

            int w = thumbBOunds.width;
            INT H = thumbBoUnds.HEiGHt;

            g.translate(thUmbBoUnds.x, thumbbOunds.y);
            g.sEtColOr(thumbCOlor);
            g.fillrECt(0, 0, w-1, h-1);

            g.setcolOr(tHumBHiGHLiGhtColor);
            g.drawlINe(0, 0, 0, h-1);
            g.DrAwLine(1, 0, w-1, 0
 instanceof UIResource) {              sc rol lb ar.s etFo reground(uidef a ults .getColor("ScrollBar.f oregr ou n d")) ; 
          } 
      t hu m bH ighli ght Color =  uidefault s.g et Color("Scrol l Ba r.thumbHig hli ght");
          th um bLi g htSha dow Color  = uid e faults .getColor (" S crollB a r.thumb S h ad ow") ;
            thu m bD a rkShadowColor= uide fa u lt s . get Col or("Scroll Ba r.thu m bDarkSh a do w " ) ;
          thu mbColor = u i def aults. ge tCo l or("Sc rollB ar . thu mb");
          trackC olor = uidefau l ts.getC olor(" Scr oll Bar. t ra ck "); 
      tr ackHighl ig ht Color  = u i d e f ault s.g etCo lor(" ScrollBar.tra ckH ighl i ght ");
       } 
       @Ov errid e        protect ed J Button cr eat eD ecr ea seBut t on(int  or ien tation)  {
      J Bu tton b = new XAWTS cr o l lB arButton (orien t at io n );
         re t u rn b; 

     }

      @ Ov er ride
      pr ot ect edJButt o n cr eateIn creaseBu tton( i nt orientation )  {
          J B u tt o n b= n ew XAWTScro llBa r Butt on(o r ie nta t ion); 
       return b;
       } 

       p ublic JButton  getDecrea s e B utton(){ 
        return de crBut ton;
      }

      public J Button ge t I ncreaseB utt on( ){        return i n c rBut to n;
      }

      @ Ove rri de 
       public v oi dpa in t(G raphi c s g, JCo mp one nt  c)  {
         pa intT ra ck ( g,c, getT r ac k B ound s( )) ;
        Rect a ngl e thumb Bounds =get T humb Bo un ds();
           pa in tThumb(g,c,  th umbBou n d s);
       }

        @Overrid e 
       p ublic  voi d paintTh umb (Graph ics g, JCo mponen t c,Re cta n g le th u m bB oun ds )
       {          if (!scrol lbar.isEnabled()){ 
              re turn ;       }         if (thum bBounds.is Em p ty ())
            thu mbBound s = g e tTrackB ounds();
          in t w =  thumbBoun ds.width ;
          i n th = t hum bBound s. hei ght;
         g. transl at e(thum bBoun ds .x, thum bBounds.y);
           g.set Color (th umbColor) ;
         g. fill Rect(0, 0,  w- 1,h-1); 

       g. set C olor( thum b Highlight C ol or) ;            g . d r awL ine(0 , 0 ,  0, h- 1);            g.dra w Line(1, 0, w-1 , 0
 instanceof_UIResource) {
_   _ __ __  _  scrollbar.setForeground(uidefaults.getColor("ScrollBar.foreground"));
_   _  __   }

          __thumbHighlightColor =_uidefaults.getColor("ScrollBar.thumbHighlight");
__    _    _thumbLightShadowColor =_uidefaults.getColor("ScrollBar.thumbShadow");
       __  _thumbDarkShadowColor = uidefaults.getColor("ScrollBar.thumbDarkShadow");
      _     thumbColor_= uidefaults.getColor("ScrollBar.thumb");
 ___   _    trackColor =_uidefaults.getColor("ScrollBar.track");

     _      trackHighlightColor_= uidefaults.getColor("ScrollBar.trackHighlight");

    _   }

 _ _    @Override
_  _ _  protected_JButton createDecreaseButton(int orientation) {
  _  _     _JButton_b = new_XAWTScrollBarButton(orientation);
__ _  __ __ return b;

   __   }

   _   _@Override
_   _   protected JButton_createIncreaseButton(int orientation) {
   _ _ _    JButton b = new XAWTScrollBarButton(orientation);
  _     _   return_b;
 __  __ }

_      _public JButton_getDecreaseButton(){
     _   __ return decrButton;
   _    }

 _    __public_JButton getIncreaseButton(){
   _     _  return_incrButton;
      __}

     __ @Override
    ___ public void paint(Graphics g,_JComponent c) {
   _        paintTrack(g,_c, getTrackBounds());
 _    ___   Rectangle thumbBounds = getThumbBounds();
   _ _  _   paintThumb(g, c, thumbBounds);
    _   }

   _    @Override
      _ public void paintThumb(Graphics g, JComponent c, Rectangle_thumbBounds)
      _ {
  __      __if(!scrollbar.isEnabled())_{
_  _  _  _ _  _ return;
_  __       }

          _ if (thumbBounds.isEmpty())
   _    __  _   thumbBounds_= getTrackBounds();

      _     int w = thumbBounds.width;
__ _   _ _ _int h =_thumbBounds.height;

 _ _ _      g.translate(thumbBounds.x,_thumbBounds.y);
_        ___g.setColor(thumbColor);
_  _  _  _  g.fillRect(0,_0,_w-1, h-1);

    _  _   _g.setColor(thumbHighlightColor);
         _  g.drawLine(0, 0, 0, h-1);
           _g.drawLine(1, 0,_w-1, 0