Print this page
4719 Common patchset for jdk1.7 support preparation

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/krb5/kadmin/gui/dchanger/DCPanel.java
          +++ new/usr/src/cmd/krb5/kadmin/gui/dchanger/DCPanel.java
↓ open down ↓ 82 lines elided ↑ open up ↑
  83   83      add(minusButton);
  84   84  
  85   85      }
  86   86  
  87   87      /**
  88   88       * Ensures that this component is not brought into focus by
  89   89       * tabbing. This prevents the tab focus from moving in here instead
  90   90       * of going to a text field.
  91   91       * @return false always.
  92   92       */
  93      -    public boolean isFocusTraversable() {
       93 +    public boolean isFocusable() {
  94   94      return false;
  95   95      }
  96   96  
  97   97      /**
  98   98       * Sets the listener for this tab.
  99   99       * @param listener the DCListener that needs to be notified when the
 100  100       * buttons on this panel are pressed.
 101  101       * @return the old listener
 102  102       */
 103  103      public DCListener setListener(DCListener listener) {
↓ open down ↓ 190 lines elided ↑ open up ↑
 294  294          if (text.equals("+"))
 295  295             addMouseListener(new DCMouseListener(true));
 296  296          else
 297  297          addMouseListener(new DCMouseListener(false));
 298  298      }
 299  299  
 300  300      /**
 301  301       * Make the button non-focus traversable so that it cannot be
 302  302       * tabbed in to.
 303  303       */
 304      -    public boolean isFocusTraversable() {
      304 +    public boolean isFocusable() {
 305  305          return false;
 306  306      }
 307  307  
 308  308      } // DCButton
 309  309  
 310  310  
 311  311      /**
 312  312       * Test method for DCPanel class to see appearance.
 313  313       */
 314  314      public static void main(String args[]) {
 315  315      Frame f = new Frame("Testing DCPanel");
 316  316      f.add(new DCPanel());
 317  317      f.setBounds(new Rectangle(100, 100, 100, 100));
 318  318      f.setVisible(true);
 319  319      }
 320  320    
 321  321  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX