自信膨胀的汤姆
2017-04-12 12:37:55
java swing绘制软键盘
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() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 1000, 500); contentPane = new JPanel(); contentPane.setBorder(null); contentPane.setLayout(null); setContentPane(contentPane); jTextField = new JTextField(); jTextField.setBounds(350, 50, 200, 30); keyboard = new Keyboard(); keyboard.setBounds(100, 100, 555, 221); contentPane.add(keyboard); contentPane.add(jTextField); } }
猜你喜欢
请下载代码后再发表评论
文件名:KeyboardTest.zip,文件大小:21.406K
下载
- /
- /KeyboardTest
- /KeyboardTest/.classpath
- /KeyboardTest/.project
- /KeyboardTest/.settings
- /KeyboardTest/.settings/org.eclipse.jdt.core.prefs
- /KeyboardTest/KeyboardTest
- /KeyboardTest/bin
- /KeyboardTest/bin/ImageTool.class
- /KeyboardTest/bin/Keyboard$KeyLable$1.class
- /KeyboardTest/bin/Keyboard$KeyLable.class
- /KeyboardTest/bin/Keyboard$KeyStatus.class
- /KeyboardTest/bin/Keyboard$RowType.class
- /KeyboardTest
![最代码相关代码源代码列表](https://static.zuidaima.com/resource/img/heart_ico.png)
![最代码最近下载分享源代码列表](https://static.zuidaima.com/resource/img/heart_ico.png)
杜崴 LV1
2021年9月18日
叨叨喜欢刨坑 LV4
2021年7月25日
186啊哈 LV2
2021年6月4日
liuliuqiu LV1
2020年12月18日
Standingflower LV1
2020年3月23日
deanw7 LV1
2019年12月5日
ssh0 LV11
2019年12月5日
756398953 LV12
2019年7月3日
yyPander LV2
2019年4月3日
why2560259286 LV1
2019年1月3日
![最代码最近浏览分享源代码列表](https://static.zuidaima.com/resource/img/cattle_ico.png)
lshlsh
2023年12月25日
暂无贡献等级
fesfefe LV13
2023年11月11日
微信网友_5992582549164032 LV6
2022年6月21日
陈小灏 LV15
2022年5月30日
微信网友_5951283377328128
2022年5月9日
暂无贡献等级
孙纪龙啊 LV10
2021年12月7日
terryang LV19
2021年7月26日
叨叨喜欢刨坑 LV4
2021年7月25日
风过无痕 LV1
2021年7月4日
186啊哈 LV2
2021年6月4日