e819. highlighting buttons in a jtoolbar container while under the cursor.txt

来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 11 行

TXT
11
字号
By default, a button in a toolbar does not change its appearance when the cursor is over the button. However, if the toolbar is in rollover mode, the buttons will highlight while under a cursor. 
    // Create a horizontal toolbar
    JToolBar toolbar = new JToolBar();
    
    // Get current rollover mode
    boolean b = toolbar.isRollover();
    
    // Enable rollover mode
    toolbar.setRollover(true);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?