48 tojava * particular file as subject to the "Classpath" exception as provided
49 tojava * by Oracle in the LICENSE file that accompanied this code.
50 tojava *
51 tojava * This code is distributed in the hope that it will be useful, but WITHOUT
52 tojava * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
53 tojava * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
54 tojava * version 2 for more details (a copy is included in the LICENSE file that
55 tojava * accompanied this code).
56 tojava *
57 tojava * You should have received a copy of the GNU General Public License version
58 tojava * 2 along with this work; if not, write to the Free Software Foundation,
59 tojava * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
60 tojava *
61 tojava * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
62 tojava * or visit www.oracle.com if you need additional information or have any
63 tojava * questions.
64 tojava */
65 tojava
66 tojava package sun.awt.X11;
67 tojava import java.util.Hashtable;
68 tojava import sun.misc.Unsafe;
69 tojava
70 tojava import sun.util.logging.PlatformLogger;
71 tojava
72 tojava public class XKeysym {
73 tojava
74 tojava public static void main( String args[] ) {
75 tojava System.out.println( "Cyrillc zhe:"+convertKeysym(0x06d6, 0));
76 tojava System.out.println( "Arabic sheen:"+convertKeysym(0x05d4, 0));
77 tojava System.out.println( "Latin a breve:"+convertKeysym(0x01e3, 0));
78 tojava System.out.println( "Latin f:"+convertKeysym(0x066, 0));
79 tojava System.out.println( "Backspace:"+Integer.toHexString(convertKeysym(0xff08, 0)));
80 tojava System.out.println( "Ctrl+f:"+Integer.toHexString(convertKeysym(0x066, XConstants.ControlMask)));
81 tojava }
82 tojava
83 tojava private XKeysym() {}
84 tojava
85 tojava static class Keysym2JavaKeycode {
86 tojava int jkeycode;
87 tojava int keyLocation;
88 tojava int getJavaKeycode() {
|
48 tojava * particular file as subject to the "Classpath" exception as provided
49 tojava * by Oracle in the LICENSE file that accompanied this code.
50 tojava *
51 tojava * This code is distributed in the hope that it will be useful, but WITHOUT
52 tojava * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
53 tojava * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
54 tojava * version 2 for more details (a copy is included in the LICENSE file that
55 tojava * accompanied this code).
56 tojava *
57 tojava * You should have received a copy of the GNU General Public License version
58 tojava * 2 along with this work; if not, write to the Free Software Foundation,
59 tojava * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
60 tojava *
61 tojava * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
62 tojava * or visit www.oracle.com if you need additional information or have any
63 tojava * questions.
64 tojava */
65 tojava
66 tojava package sun.awt.X11;
67 tojava import java.util.Hashtable;
68 tojava import jdk.internal.misc.Unsafe;
69 tojava
70 tojava import sun.util.logging.PlatformLogger;
71 tojava
72 tojava public class XKeysym {
73 tojava
74 tojava public static void main( String args[] ) {
75 tojava System.out.println( "Cyrillc zhe:"+convertKeysym(0x06d6, 0));
76 tojava System.out.println( "Arabic sheen:"+convertKeysym(0x05d4, 0));
77 tojava System.out.println( "Latin a breve:"+convertKeysym(0x01e3, 0));
78 tojava System.out.println( "Latin f:"+convertKeysym(0x066, 0));
79 tojava System.out.println( "Backspace:"+Integer.toHexString(convertKeysym(0xff08, 0)));
80 tojava System.out.println( "Ctrl+f:"+Integer.toHexString(convertKeysym(0x066, XConstants.ControlMask)));
81 tojava }
82 tojava
83 tojava private XKeysym() {}
84 tojava
85 tojava static class Keysym2JavaKeycode {
86 tojava int jkeycode;
87 tojava int keyLocation;
88 tojava int getJavaKeycode() {
|