?? right.java
字號:
/*
* Right.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 Right implements Direction {
/** Creates a new instance of Right */
public Right() {
}
public void drag(int dx, int dy, Component comp) {
Rectangle current_bounds = comp.getBounds();
current_bounds.width += dx;
comp.setBounds(current_bounds);
}
public int getCursor() {
return Cursor.E_RESIZE_CURSOR;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -