allingmentcomponent.java

来自「sound recorder which supports .wav forma」· Java 代码 · 共 36 行

JAVA
36
字号
package com.vimas.interfaceapplet;

import java.awt.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: Vimas technologies</p>
 * @author miha
 * @version 1.0
 */

public class AllingmentComponent extends Component
{
  int width;
  int height;

  public AllingmentComponent(int w, int h)
  {
    super();
    this.width=w;
    this.height=h;
  }
  //*****************************************************************************
  public Dimension getPreferredSize()
  {
      return new Dimension(width, height);
  }
//*****************************************************************************
  public Dimension getMinimumSize() {
      return new Dimension(width, height);
  }
//*****************************************************************************
}

⌨️ 快捷键说明

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