swing绘制的软键盘
效果图如下:
public class KeyboardTest extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel contentPane;
public static JTextField jTextField;
private Keyboard keyboard;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
KeyboardTest frame = new KeyboardTest();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public KeyboardTest() {