📄 e574. changing the cursor.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 + -