📄 about.java
字号:
import java.awt.*;public class About extends Frame{ Button okay; String[] message = {"This applet was implemented by","Sundara.S.Chintaluri , Anupama Polavarapu", "Kevin.S.Millikin","under the supervision of", "Dr. Daniel A. Menasce","at the Center for the New Engineer at","George Mason University.","Summer 1996.","&"}; int x,y; public About(){ setTitle("People Behind the Scene"); okay = new Button("Ok"); okay.reshape(125,250,50,30); add(okay);} // end constructor.public boolean handleEvent(Event e){ if(e.id == Event.WINDOW_DESTROY) { this.hide(); } return super.handleEvent(e);} // end handle event.public boolean action(Event e,Object arg){ if(e.target == okay) { this.hide(); return true; } return false;}public void paint(Graphics g){ g.drawString(message[0],40,85); g.drawString(message[1],18,110); g.drawString(message[8],140,125); g.drawString(message[2],100,140); g.drawString(message[3],70,165); g.drawString(message[4],80,180); g.drawString(message[5],35,205); g.drawString(message[6],70,220); g.drawString(message[7],100,235);} // end paint} // end class about
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -