⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e574. changing the cursor.txt

📁 这里面包含了一百多个JAVA源文件
💻 TXT
字号:
A component has a cursor property which controls the shape of the cursor when the cursor is above the component. The component's cursor property can be changed at any time by calling Component.setCursor(). See the Cursor class for available predefined cursor shapes. 
    // Create a component
    Component comp = new Button("OK");
    
    // By default, the component's cursor is Cursor.DEFAULT_CURSOR
    Cursor cursor = comp.getCursor();
    
    // Change the component's cursor to another shape
    comp.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

⌨️ 快捷键说明

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