JDK-4505112 : KeyStroke.toString should work with KeyStroke.getKeyStroke(String)
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-09-20
  • Updated: 2003-04-24
  • Resolved: 2003-04-24
Related Reports
Duplicate :  
Description

Name: bsT130419			Date: 09/20/2001


java version "1.4.0-internal"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-internal-madbot-01
0430-12:25)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b62, mixed mode)

KeyStroke.toString() should return a string that is
acceptable to KeyStroke.getKeyStroke().

or supply a method that does this.

we want to be able to dump and parse keybindings.
(Review ID: 132226) 
======================================================================

Comments
WORK AROUND Name: bsT130419 Date: 09/20/2001 write your own method. but this is not automatically updated with a jdk release. ======================================================================
11-06-2004

EVALUATION If we decide to do this, this should probably be done in AWTKeyStroke as KeyStroke no longer overrides toString. ###@###.### 2001-09-20
20-09-2001