protected void drawFocus(Graphics g, boolean on) {
   boolean oldDrawStyleFocus = g.isDrawingStyleSet(Graphics.DRAWSTYLE_FOCUS);
   try {
     if (on) {
       g.setDrawingStyle(Graphics.DRAWSTYLE_FOCUS, true);
     }
     paint(g);
   } finally {
     g.setDrawingStyle(Graphics.DRAWSTYLE_FOCUS, oldDrawStyleFocus);
   }
 }
Beispiel #2
0
 protected void drawFocus(Graphics g, boolean on) {
   // Paint() handles it all
   g.setDrawingStyle(Graphics.DRAWSTYLE_FOCUS, true);
   paintBackground(g);
   paint(g);
 }