📄 key_binding.java
字号:
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.text.NumberFormat;
//import java.lang.*;
import java.sql.*;
import javax.swing.text.*;
//import com.borland.jbcl.layout.*;
//import com.borland.jbcl.layout.*;
import java.awt.*;
import java.util.Vector;
//import java.applet.*;
import java.util.Calendar;
class Key_Binding
{
static final JTextComponent.KeyBinding[] Key_Binding = {
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('a'),"insert-me \u0627"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('b'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('c'),"insert-me \u0686"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('d'),"insert-me \u062f"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('e'),"insert-me \u0639"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('f'),"insert-me \u0641"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('g'),"insert-me \u063A"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('h'),"insert-me \u062D"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('i'),"insert-me \u0649"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('j'),"insert-me \u0626"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('k'),"insert-me \u06A9"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('l'),"insert-me \u0644"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('m'),"insert-me \u0645"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('n'),"insert-me \u0646"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('o'),"insert-me \u0635"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('p'),"insert-me \u067E"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('q'),"insert-me \u0643"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('r'),"insert-me \u0631"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('s'),"insert-me \u0633"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('t'),"insert-me \u062A"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('u'),"insert-me \u0637"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('v'),"insert-me \u0621"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('w'),"insert-me \u0648"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('x'),"insert-me \u0634"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('y'),"insert-me \u064A"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('z'),"insert-me \u0632"),
//****************** Capital
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('A'),"insert-me \u0622"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('B'),"insert-me \u061F"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('C'),"insert-me \u0642"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('D'),"insert-me \u0688"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('E'),"insert-me \u0648"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('F'),"insert-me \u0648")
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('G'),"insert-me \u06AF"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('H'),"insert-me \u0665"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('I'),"insert-me \u06D2"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('J'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('K'),"insert-me \u062E"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('L'),"insert-me \u0628"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('M'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('N'),"insert-me \u06BA"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('O'),"insert-me \u0636"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('P'),"insert-me \u0628"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('Q'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('R'),"insert-me \u0691"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('S'),"insert-me \u062B"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('T'),"insert-me \u0679"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('U'),"insert-me \u0638"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('V'),"insert-me \u0647"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('W'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('X'),"insert-me \u0698"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('Y'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('Z'),"insert-me \u0630"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('1'),"insert-me \u06F1"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('B'),"insert-me \u061F"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('2'),"insert-me \u06F2"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('3'),"insert-me \u06F3"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('E'),"insert-me \u0648"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('F'),"insert-me \u0648")
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('4'),"insert-me \u06F4"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('5'),"insert-me \u06F5"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('6'),"insert-me \u06F6"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('J'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('7'),"insert-me \u06F7"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('L'),"insert-me \u0628"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('M'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('8'),"insert-me \u06F8"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('9'),"insert-me \u06F9"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('P'),"insert-me \u0628"),
//new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('Q'),"insert-me \u0628"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('0'),"insert-me \u06F0"),
new JTextComponent.KeyBinding(KeyStroke.getKeyStroke('-'),"insert-me \u002D")
};
static final Action[] Key_Action = {
new InsertMeAction("\u0627"),
new InsertMeAction("\u0628"),
new InsertMeAction("\u0686"),
new InsertMeAction("\u062f"),
new InsertMeAction("\u0639"),
new InsertMeAction("\u0641"),
new InsertMeAction("\u063A"),
new InsertMeAction("\u062D"),
new InsertMeAction("\u0649"),
new InsertMeAction("\u0626"),
new InsertMeAction("\u06A9"),
new InsertMeAction("\u0644"),
new InsertMeAction("\u0645"),
new InsertMeAction("\u0646"),
new InsertMeAction("\u0635"),
new InsertMeAction("\u067E"),
new InsertMeAction("\u0631"),
new InsertMeAction("\u0633"),
new InsertMeAction("\u062A"),
new InsertMeAction("\u0637"),
new InsertMeAction("\u0621"),
new InsertMeAction("\u0648"),
new InsertMeAction("\u0634"),
new InsertMeAction("\u064A"),
new InsertMeAction("\u0632"),
new InsertMeAction("\u0622"),
new InsertMeAction("\u0642"),
new InsertMeAction("\u0688"),
new InsertMeAction("\u06AF"),
new InsertMeAction("\u0665"),
new InsertMeAction("\u06D2"),
new InsertMeAction("\u062E"),
new InsertMeAction("\u06BA"),
new InsertMeAction("\u0636"),
new InsertMeAction("\u0691"),
new InsertMeAction("\u062B"),
new InsertMeAction("\u0679"),
new InsertMeAction("\u0638"),
new InsertMeAction("\u0647"),
new InsertMeAction("\u0698"),
new InsertMeAction("\u0630"),
new InsertMeAction("\u06F1"),
new InsertMeAction("\u06F2"),
new InsertMeAction("\u06F3"),
new InsertMeAction("\u06F4"),
new InsertMeAction("\u06F5"),
new InsertMeAction("\u06F6"),
new InsertMeAction("\u06F7"),
new InsertMeAction("\u06F8"),
new InsertMeAction("\u06F9"),
new InsertMeAction("\u06F0"),
new InsertMeAction("\u002D")
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -