/[classpath]/classpath/javax/swing/KeyStroke.java
ViewVC logotype

Diff of /classpath/javax/swing/KeyStroke.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by mark, Sat Sep 4 17:14:01 2004 UTC revision 1.11 by mark, Thu Sep 23 15:03:21 2004 UTC
# Line 46  public class KeyStroke Line 46  public class KeyStroke
46    implements Serializable    implements Serializable
47  {  {
48    static final long serialVersionUID = -9060180771037902530L;    static final long serialVersionUID = -9060180771037902530L;
49          private KeyStroke() {    private KeyStroke() {
50    }    }
51      
52    protected KeyStroke(char keyChar, int keyCode, int modifiers,    protected KeyStroke(char keyChar, int keyCode, int modifiers,
53                        boolean onKeyRelease)                        boolean onKeyRelease)
54    {    {
# Line 65  public class KeyStroke Line 65  public class KeyStroke
65      return (KeyStroke) getAWTKeyStroke(keyChar);      return (KeyStroke) getAWTKeyStroke(keyChar);
66    }    }
67    
68          /**    /**
69     * @deprecated Use {@link #getKeyStroke(char)}     * @deprecated Use {@link #getKeyStroke(char)}
70     *     *
71     * This method, unlike all the other factory methods on this object,     * This method, unlike all the other factory methods on this object,
72     * returns a non-cached, non-shared object. New code should not use it.     * returns a non-cached, non-shared object. New code should not use it.
73           */     */
74    public static KeyStroke getKeyStroke(char keyChar, boolean onKeyRelease)    public static KeyStroke getKeyStroke(char keyChar, boolean onKeyRelease)
75    {    {
76      return new KeyStroke(keyChar, KeyEvent.VK_UNDEFINED, 0, onKeyRelease);      return new KeyStroke(keyChar, KeyEvent.VK_UNDEFINED, 0, onKeyRelease);
# Line 81  public class KeyStroke Line 81  public class KeyStroke
81      return (KeyStroke) getAWTKeyStroke(keyChar, modifiers);      return (KeyStroke) getAWTKeyStroke(keyChar, modifiers);
82    }    }
83    
84          public static KeyStroke getKeyStroke(int keyCode, int modifiers,    public static KeyStroke getKeyStroke(int keyCode, int modifiers,
85                                         boolean onKeyRelease)                                         boolean onKeyRelease)
86    {    {
87      return (KeyStroke) getAWTKeyStroke(keyCode, modifiers, onKeyRelease);      return (KeyStroke) getAWTKeyStroke(keyCode, modifiers, onKeyRelease);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26