rightbottom.java
来自「SWING的界面UI包 SWING的界面UI包」· Java 代码 · 共 37 行
JAVA
37 行
/*
* RightBottom.java
*
* Created on August 1, 2007, 11:34 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package dyno.swing.designer.beans.location;
import java.awt.Component;
import java.awt.Cursor;
import java.awt.Rectangle;
/**
*
* @author William Chen
*/
public class RightBottom implements Direction {
/** Creates a new instance of RightBottom */
public RightBottom() {
}
public void drag(int dx, int dy, Component comp) {
Rectangle current_bounds = comp.getBounds();
current_bounds.width += dx;
current_bounds.height += dy;
comp.setBounds(current_bounds);
}
public int getCursor() {
return Cursor.SE_RESIZE_CURSOR;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?