Here you can find the source of stringToKeyStroke(String s)
public static KeyStroke stringToKeyStroke(String s)
//package com.java2s; //License from project: Open Source License import javax.swing.*; public class Main { public static KeyStroke stringToKeyStroke(String s) { throw new IllegalAccessError("Work in progress"); // if (s == null) return null; ////from www . j a v a2 s . c o m // List<String> allMatches = new ArrayList<String>(); // Matcher m = p.matcher(s); // while (m.find()) { // allMatches.add(m.group()); // } // return null; } }