本文整理了Java中javax.swing.JFrame.setFocusTraversalKeysEnabled()
方法的一些代码示例,展示了JFrame.setFocusTraversalKeysEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.setFocusTraversalKeysEnabled()
方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:setFocusTraversalKeysEnabled
暂无
代码示例来源:origin: kevin-wayne/algs4
frame.setFocusTraversalKeysEnabled(false); // to recognize VK_TAB with isKeyPressed()
frame.setTitle(name);
frame.setJMenuBar(createMenuBar());
代码示例来源:origin: kevin-wayne/algs4
frame.setFocusTraversalKeysEnabled(false); // allow VK_TAB with isKeyPressed()
frame.setResizable(false);
代码示例来源:origin: klamonte/jexer
/**
* Setup to render to an existing JFrame.
*/
public void setupFrame() {
frame.setTitle("Jexer Application");
frame.setBackground(Color.black);
frame.pack();
// Kill the X11 cursor
// Transparent 16 x 16 pixel cursor image.
BufferedImage cursorImg = new BufferedImage(16, 16,
BufferedImage.TYPE_INT_ARGB);
// Create a new blank cursor.
Cursor blankCursor = Toolkit.getDefaultToolkit().createCustomCursor(
cursorImg, new Point(0, 0), "blank cursor");
frame.setCursor(blankCursor);
// Be capable of seeing Tab / Shift-Tab
frame.setFocusTraversalKeysEnabled(false);
// Setup triple-buffering
if (tripleBuffer) {
frame.setIgnoreRepaint(true);
frame.createBufferStrategy(3);
}
}
代码示例来源:origin: freeplane/freeplane
frame.setFocusTraversalKeysEnabled(false);
final int win_width = ResourceController.getResourceController().getIntProperty("appwindow_width", -1);
final int win_height = ResourceController.getResourceController().getIntProperty("appwindow_height", -1);
内容来源于网络,如有侵权,请联系作者删除!