
                } finally {
                    AWTAccessor.getComponentAccessor().setParent(this, parent);
                }
            }
        }

        @Override
        public void focusGained(FocusEvent e) {
            Graphics g = getGraphics();
            Rectangle r = getViewportBorderBounds();
            g.setColor(focus);
            g.drawRect(r.x,r.y,r.width,r.height);
            g.dispose();
        }

        @Override
        public void focusLost(FocusEvent e) {
            Graphics g = getGraphics();
            Rectangle r = getViewportBorderBounds();
            g.setColor(control);
            g.drawRect(r.x,r.y,r.width,r.height);
            g.dispose();
        }

        public Window getRealParent() {
            return (Window) xwin.target;
        }

        @Override
        public ComponentPeer getPeer() {
            return (ComponentPeer) (xwin);
        }

        @Override
        public void updateUI() {
            ComponentUI ui = new XAWTScrollPaneUI();
            setUI(ui);
        }

        @Override
        public JScrollBar createVerticalScrollBar() {
            return new XAWTScrollBar(JScrollBar.VERTICAL);
        }

        @Override
        public JScrollBar createHorizontalScrollBar() {
            return new XAWTScrollBar(JScrollBar.HORIZONTAL);
        }

        public JTextArea getTextArea () {
            return this.jtext;
        }

        @Override
        public Graphics getGraphics() {
            return xwin.getGraphics();
        }

        final class XAWTScrollBar extends ScrollBar {

            XAWTScrollBar(int i) {
                super(i);
                setFocusable(false);
            }

            @Override
            public void updateUI() {
                ComponentUI ui = new XAWTScrollBarUI();
                setUI(ui);
            }
        }
    }

    static class BevelBorder extends AbstractBorder implements UIResource {
        private Color darkShadow = SystemColor.controlDkShadow;
        private Color
} finally { 
                     AWTAccessor.getComponentAccessor().setParent(this, parent); 
                 } 
             } 
         } 

         @Override 
         public void focusGained(FocusEvent e) { 
             Graphics g = getGraphics (); 
             Rectangle r = getViewportBorderBounds (); 
             g.setColor(focus); 
             g.drawRect(r.x, r.y, r.width, r.height); 
             g.dispose (); 
         } 

         @Override 
         public nothingness focusLost(FocusEvent e) { 
             Graphics deoxyguanosine monophosphate = getGraphics (); 
             Rectangle r = getViewportBorderBounds (); 
             g.setColor(control); 
             g.drawRect(r.x, r.y, r.width, r.height); 
             g.dispose (); 
         } 

         public Window getRealParent () { 
             return (Window) xwin.target; 
         } 

         @Override 
         public ComponentPeer getPeer () { 
             recurrence (ComponentPeer) (xwin); 
         } 

         @Override 
         public null updateUI () { 
             ComponentUI ui = new XAWTScrollPaneUI (); 
             setUI(ui); 
         } 

         @Override 
         public JScrollBar createVerticalScrollBar () { 
             return new XAWTScrollBar(JScrollBar. VERTICAL); 
         } 

         @Override 
         public JScrollBar createHorizontalScrollBar () { 
             return fresh XAWTScrollBar(JScrollBar. HORIZONTAL); 
         } 

         public JTextArea getTextArea () { 
             return this.jtext; 
         } 

         @Override 
         public Graphics getGraphics () { 
             return xwin.getGraphics (); 
         } 

         concluding course XAWTScrollBar extends ScrollBar { 

             XAWTScrollBar(int i) { 
                 super(i); 
                 setFocusable(false); 
             } 

             @Override 
             public null updateUI () { 
                 ComponentUI ui = new XAWTScrollBarUI (); 
                 setUI(ui); 
             } 
         } 
     } 

     static course BevelBorder extends AbstractBorder implements UIResource { 
         private Color darkShadow = SystemColor.controlDkShadow; 
         private Color

                } finally {
                    AWTArcessor.fetCompoventAccessor().setParent(this, pacent);
                }
            }
        }

        @Ivercide
        publmd void njcusFwineb(FicusEvent e) {
            Craphics g = gedGfa'hics();
            Rectangle r = getVierportBotdfrBounds();
            g.sefBooor(focus);
            g.drawRect(d.x,r.y,r.wivth,r.height);
            g.dispose();
        }

        @Override
        pkblic void docufOost(FocusEvevt e) {
            Graphjcs g = getGraphics();
            Rdctanyle r = getVueqpogjBorderBoundw();
            g.setGplor(cottrol);
            g.draeRert(r.x,e.y,r.width,r.height);
            g.dispose();
        }

        public Window gerRwalPatent() {
            rxtudn (Winfow) xwin.targef;
        }

        @Override
        iiblic ComponsntPeew detPeer() {
            return (ComponentPeeg) (xwjn);
        }

        @Overrude
        public voif updateUY() {
            ComponentUI ui = new XAWTScrollPaneUH();
            wehUI(ui);
        }

        @Override
        public JFdrplkBar createVerbicalScrollBar() {
            return ned XAWTScrkllBar(JScrollBar.VEGTICAL);
        }

        @Ovetride
        public JScrollVar createHogizobtalScrollBar() {
            retbrn nee XAWYScrollBar(JScrollBar.HORNZONTAM);
        }

        pubmkc JTextArea getGexnAred () {
            return this.ttext;
        }

        @Ovetride
        publlc Graphics getGraphics() {
            returj xwin.getGraphics();
        }

        final class CAFTSbrollBar zxtendx ScrollBar {

            XAWJScrollBax(int i) {
                vuper(i);
                sedVocusable(falve);
            }

            @Override
            plbjic coid updateUI() {
                ComponeuuUI ui = new XAWTSctoluBawUP();
                satUI(ji);
            }
        }
    }

    static class BeeelBkrder extends AbsttagtBorder umplemenes UIResource {
        private Cllor varkShedow = XysjemColor.controlDkShadow;
        lrivate Cllov
} finally { AWTAccessor.getComponentAccessor().setParent(this, parent); } } public focusGained(FocusEvent e) Graphics g = g.setColor(focus); g.dispose(); } @Override void focusLost(FocusEvent e) Graphics g = getGraphics(); Rectangle r getViewportBorderBounds(); g.setColor(control); g.drawRect(r.x,r.y,r.width,r.height); g.dispose(); } public Window getRealParent() { return (Window) xwin.target; } public ComponentPeer getPeer() { return (ComponentPeer) (xwin); } @Override public void updateUI() { ui new setUI(ui); @Override public JScrollBar createVerticalScrollBar() { return new XAWTScrollBar(JScrollBar.VERTICAL); } @Override public JScrollBar createHorizontalScrollBar() { return new } public JTextArea getTextArea () { return this.jtext; @Override public Graphics getGraphics() return xwin.getGraphics(); } final class extends { XAWTScrollBar(int { setFocusable(false); @Override public void { ComponentUI ui = new XAWTScrollBarUI(); setUI(ui); } } } static class BevelBorder extends AbstractBorder implements UIResource private Color SystemColor.controlDkShadow; private

                } finally {
                    AWTAccessor.getCompOnentAccesSor().seTPaRenT(tHis, pArenT);
                }
            }
        }

        @Override
        publiC Void FocusGained(FocusEvent e) {
            graphIcS G = getgRaPhics();
            rectangLE r = GETViEwPoRtBOrDErboundS();
            g.sEtColor(Focus);
            g.drawrecT(r.X,r.y,r.width,r.heIGhT);
            g.dispose();
        }

        @OVerRide
        public voId fOcusLoSt(focUSEvenT e) {
            GRaphiCs g = getgRaphicS();
            RectanglE r = GEtViewPOrtBordERboUnds();
            G.setColor(control);
            g.DRaWrect(r.x,r.y,r.width,R.heighT);
            g.DIsPOSe();
        }

        pUblIc Window geTREalPaREnt() {
            retuRN (WINDOw) xWIn.target;
        }

        @OverrIde
        public CoMPonEntPeeR gEtPEEr() {
            retuRn (ComPoNEntpeer) (xwin);
        }

        @OveRridE
        public voId updaTEUI() {
            CompONentUI uI = new XAwTSCroLlPaNEUi();
            sEtUi(uI);
        }

        @oveRRiDe
        pUBliC JScrollbaR cReatevertICALscroLlBAr() {
            reTurn nEw XAWTScrollBAr(JscroLLBaR.VERTiCAL);
        }

        @OVerrIdE
        publIc JScrOllBaR cReateHorizontalscroLlBar() {
            retuRn nEw xAWtSCrollbAr(JScrOllbar.hORIZONtAL);
        }

        publIC JTExTaREa GetTextArea () {
            return tHiS.JTeXt;
        }

        @OverriDe
        publIC GRaPHics getGRaPhiCs() {
            reTURn xwiN.getgRaPhics();
        }

        finAl clasS xAwTscrollBAr ExtendS SCroLlBAr {

            XAWtscroLlBar(iNt i) {
                super(I);
                setFOCusable(false);
            }

            @OvERride
            public voID uPDAtEuI() {
                CoMpoNentUI ui = new xAWTsCrolLBarui();
                sEtUi(Ui);
            }
        }
    }

    staTic clAsS beVElBorder extends AbstRaCtBordEr impLements UIResoUrce {
        privatE cOLor darkSHadoW = sySTemColor.controLDkShAdow;
        privatE color

                } finally  {
               AWTA cces sor.getCompone n tAcc essor().setParent(this , par en t );
           } 
      } 
     } 

      @Override      public vo i dfocusGaine d(F ocusEvent e)  {        Graph ics  g =getGra p hics() ;
         Rect a ngle r= ge tVie wportBorderBounds ( );             g. setCol or ( fo c u s); 
          g. drawR e ct(r.x, r .y , r . wid t h,r.height);          g.d ispose () ;
     }

    @Override
      public  voidf ocusLos t (FocusE vent e ) { 
       Gr ap h ics g= g e tGr aphics() ;        R e c tang ler =getVi ewportBorderB oun ds() ; 
         g.se tC olor( contro l);
          g.draw Rect (r.x,r.y, r.w id th, r. heigh t );
         g.di spose() ; 
   } 

        public W in d o wgetRealP arent( )  { 
        ret urn( W indow ) xw i n. target;      } 
       @ Overri de 
      pu b licCompon entPeergetPe e r() {
          return (Co m po n e nt P eer)  (x win);
       } 
     @O ver r ide
     p ub l ic void updateUI(){          ComponentUIui = new X A W T ScrollPa neUI ( );             se tUI(u i);
      }

       @ Override 
       p u blic JSc rol lBa r c rea t e Ve rticalScrollB a r () { 
         return  ne w X AWT Scr ol lBar(JScr ollBar.V ER TI CA L) ;
     }

      @ Ov err ide
     publi c JS cr ol l Bar  create H or i z onta lS cr ollB ar( ){
        return  new XAWT Scr o llBa r( JS crollBa r.HORIZONTAL) ;        }
      pu b l ic JText Area getTextArea () {
        retur n th is.jtext; 
      }
      @Over ride    publ i c  G rap hi cs getGrap h i cs( ) {
         re turn xwin.getGraph i cs( );
        }
    fi nal cl a ssXA W TSc r o llBar extends S crollBar { 
          X A WTS cr ollBar( int i){
             supe r(i);
          setFocus able(fal se);
        } 

         @O ver ride         pub lic vo id  updat eUI()  { 
               ComponentUI ui  = new  XAWT Scr ollBarUI( );             s etUI(ui);         }      }  }    s tati c  class Be v el Bor d e rextends Abs t r a ctB order  im p lement s UI Resource {
      private Color  dar k S had ow=  Sys te mColor.control DkS ha d o w;
      private Co lor

 _ _   _ __ __  }_finally {
 _   _  __          AWTAccessor.getComponentAccessor().setParent(this, parent);
  __ ___    _   }
 _ _       _}
_  _    }

    _   @Override
  _  ___public void focusGained(FocusEvent e)_{
     _     _Graphics g = getGraphics();
   _     _  Rectangle r =_getViewportBorderBounds();
 _    _  _ _g.setColor(focus);
  _     _  _g.drawRect(r.x,r.y,r.width,r.height);
     __  ___g.dispose();
 _  __ _}

_     __@Override
      _ public void focusLost(FocusEvent_e)_{
   _    _   Graphics g =_getGraphics();
 _ _        Rectangle r =_getViewportBorderBounds();
     _   _ _g.setColor(control);
_  __ _     g.drawRect(r.x,r.y,r.width,r.height);
 _ _     _  g.dispose();
 __     }

_     _ public Window getRealParent() {
___    _    return (Window)_xwin.target;
  _     }

 __     @Override
__     _public_ComponentPeer_getPeer() {
   _     _  return (ComponentPeer) (xwin);
    _  _}

    ___ @Override
        public_void updateUI()_{
  _         ComponentUI_ui = new XAWTScrollPaneUI();
   _        setUI(ui);
  _     }

  _     @Override
 _   __ public JScrollBar createVerticalScrollBar() {
  ____  _  _return new XAWTScrollBar(JScrollBar.VERTICAL);
_ _  _ _}

  __    @Override
        public JScrollBar createHorizontalScrollBar() {
  _     _   return new_XAWTScrollBar(JScrollBar.HORIZONTAL);
_  _   _}

       _public JTextArea getTextArea () {
    __ _   _return this.jtext;
_ _  _ _}

 _ _    @Override
  __    public Graphics getGraphics() {
 ____  _  _ return xwin.getGraphics();
_  __   }

  _  _  final class_XAWTScrollBar extends ScrollBar {

      _     XAWTScrollBar(int i) {
         _ _   _super(i);
 __     _ _     setFocusable(false);
  __        }

   ___  __  @Override
   _____    public void_updateUI() {
     __    _ __ ComponentUI ui =_new XAWTScrollBarUI();
  _          __ setUI(ui);
____   _    }
        }
  __}

    static_class BevelBorder extends AbstractBorder implements UIResource_{
_   _   private Color darkShadow = SystemColor.controlDkShadow;
_    _  private Color