javax.swing.JFrame.setFocusTraversalKeysEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(172)

本文整理了Java中javax.swing.JFrame.setFocusTraversalKeysEnabled()方法的一些代码示例,展示了JFrame.setFocusTraversalKeysEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFrame.setFocusTraversalKeysEnabled()方法的具体详情如下:
包路径:javax.swing.JFrame
类名称:JFrame
方法名:setFocusTraversalKeysEnabled

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);

相关文章

JFrame类方法