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

📄 frame7_1_2.java

📁 200多个自己编的java程序,大家可以学一下.
💻 JAVA
字号:
import java.awt.*;
import java.io.*;


// this is not the main class ,so it does not need public state
class Frame1 extends Frame{
	private String titlestr;
	private int width;
	private int height;
	private Color myColor;
	public boolean b = true;
	/**
	 * Method go
	 *
	 *
	 */
	public void go() {
		this.setSize(width,height);
		this.setBackground(myColor);
		this.setVisible(b);
		}

	/**
	 * Method Frame7_1_2
	 *
	 *
	 */
	public  Frame1(String s,int w,int h,Color c) {
		super(s);
		titlestr=s;
		height=h;
		width=w;
		myColor=c;
		// TODO: Add your code here
	}
	
		
		// TODO: Add your code here
	}
	
	


public  class Frame7_1_2 {
	/**
	 * Method main
	 *
	 *
	 * @param args
	 *
	 */
	public static void main(String[] args) {
		Frame1 fr1=new Frame1("MyFrame",1200,300,Color.BLUE);
		fr1.go();
		BufferedReader intemp=new BufferedReader(new InputStreamReader(System.in));
		
		// TODO: Add your code here
	}
	
}

⌨️ 快捷键说明

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