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

📄 leftbottom.java

📁 SWING的界面UI包 SWING的界面UI包
💻 JAVA
字号:
/*
 * LeftBottom.java
 *
 * Created on August 1, 2007, 11:36 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 LeftBottom implements Direction {
    /** Creates a new instance of LeftBottom */
    public LeftBottom() {
    }

    public void drag(int dx, int dy, Component comp) {
        Rectangle current_bounds = comp.getBounds();

        current_bounds.x += dx;
        current_bounds.width -= dx;
        current_bounds.height += dy;
        comp.setBounds(current_bounds);
    }

    public int getCursor() {
        return Cursor.SW_RESIZE_CURSOR;
    }
}

⌨️ 快捷键说明

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