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

📄 oval.java

📁 金旭亮的java教案
💻 JAVA
字号:
import java.awt.*;

public class Oval extends BoundedShape {
   public Oval()
   {
      super();
   }

   public Oval( int x1, int y1, int x2, int y2 )
   {
      super( x1, y1, x2, y2 );
   }

   public void draw( Graphics g )
   {
      Color c = g.getColor();
      g.setColor( this.getColor() );
      g.fillOval( getUpperLeftX(), getUpperLeftY(),
                  getWidth(), getHeight() );
      g.setColor( c );
   }
}

⌨️ 快捷键说明

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