public CalibrationFrame() {
super("Calibration");
// getRootPane().putClientProperty("Window.alpha", new Float(0.9));
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
setBackground(Color.WHITE);
((JPanel)getContentPane()).setOpaque(true);
setLayout(null);
setUndecorated(true);
setAlwaysOnTop(true);
addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
state = CalibrationState.PENDING;
if (screen.getFullScreenWindow() == calibrationFrame)
screen.setFullScreenWindow(null);
setVisible(false);
notifyListener(CalibrationEvent.ABORTED);
}
}
});
}
WiimoteCalibration.java 文件源码
java
阅读 38
收藏 0
点赞 0
评论 0
项目:wiimote-paintboard
作者:
评论列表
文章目录