jdk/src/share/classes/javax/swing/AbstractButton.java
changeset 21278 ef8a3a2a72f2
parent 20458 f2423fb3fd19
child 21592 da6abe91602a
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   328     }
   328     }
   329 
   329 
   330     /**
   330     /**
   331      * Sets the state of the button. Note that this method does not
   331      * Sets the state of the button. Note that this method does not
   332      * trigger an <code>actionEvent</code>.
   332      * trigger an <code>actionEvent</code>.
   333      * Call <code>doClick</code> to perform a programatic action change.
   333      * Call <code>doClick</code> to perform a programmatic action change.
   334      *
   334      *
   335      * @param b  true if the button is selected, otherwise false
   335      * @param b  true if the button is selected, otherwise false
   336      */
   336      */
   337     public void setSelected(boolean b) {
   337     public void setSelected(boolean b) {
   338         boolean oldValue = isSelected();
   338         boolean oldValue = isSelected();
  2926         /**
  2926         /**
  2927          * Returns the end offset within the selected text.
  2927          * Returns the end offset within the selected text.
  2928          * If there is no selection, but there is
  2928          * If there is no selection, but there is
  2929          * a caret, the start and end offsets will be the same.
  2929          * a caret, the start and end offsets will be the same.
  2930          *
  2930          *
  2931          * @return the index into teh text of the end of the selection
  2931          * @return the index into the text of the end of the selection
  2932          * @since 1.3
  2932          * @since 1.3
  2933          */
  2933          */
  2934         public int getSelectionEnd() {
  2934         public int getSelectionEnd() {
  2935             // Text cannot be selected.
  2935             // Text cannot be selected.
  2936             return -1;
  2936             return -1;