日期:2014-05-20 浏览次数:20807 次
import java.awt.*; public class MyFrame extends Frame{ @Override public void paintAll(Graphics g) { g.setColor(Color.blue); g.fillOval(50, 50, 30, 30); } public void LaunchFrame(){ setBounds(400,400,300,300); this.setVisible(true); } /** * @param args */ public static void main(String[] args) { new MyFrame().LaunchFrame(); } }
import java.awt.*; public class MyFrame extends Frame { @Override public void paint(Graphics g) { g.setColor(Color.blue); g.fillOval(50, 50, 30, 30); } public void LaunchFrame(){ setBounds(400,400,300,300); this.setVisible(true); } /** * @param args */ public static void main(String[] args) { new MyFrame().LaunchFrame(); } }