📄 famouseuniversity.java~1~
字号:
package university;import java.awt.*;import java.awt.event.*;import java.applet.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class famouseUniversity extends Applet { private boolean isStandalone = false; Label label1 = new Label(); TextField textField1 = new TextField(); TextField textField2 = new TextField(); Label label2 = new Label(); Label label3 = new Label(); Label label4 = new Label(); Label label5 = new Label(); Choice choice1 = new Choice(); Choice choice2 = new Choice(); TextArea textArea1 = new TextArea(); //Get a parameter value public String getParameter(String key, String def) { return isStandalone ? System.getProperty(key, def) : (getParameter(key) != null ? getParameter(key) : def); } //Construct the applet public famouseUniversity() { } //Initialize the applet public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { label1.setForeground(Color.red); label1.setText("University:"); label1.setBounds(new Rectangle(158, 65, 28, 16)); this.setBackground(SystemColor.info); this.setLayout(null); textField1.setText(""); textField1.setBounds(new Rectangle(10, 9, 63, 23)); textField1.addActionListener(new famouseUniversity_textField1_actionAdapter(this)); textField2.setText(""); textField2.setBounds(new Rectangle(20, 20, 63, 23)); textField2.addActionListener(new famouseUniversity_textField2_actionAdapter(this)); label2.setForeground(Color.red); label2.setText("Location:"); label2.setBounds(new Rectangle(0, 0, 28, 16)); label3.setForeground(Color.red); label3.setText("NetAdress"); label3.setBounds(new Rectangle(10, 10, 28, 16)); label4.setForeground(Color.red); label4.setText("Subject"); label4.setBounds(new Rectangle(20, 20, 28, 16)); label5.setForeground(Color.red); label5.setText("AddMessage"); label5.setBounds(new Rectangle(30, 30, 28, 16)); choice1.setBounds(new Rectangle(179, 108, 27, 22)); choice2.setBounds(new Rectangle(288, 105, 27, 22)); textArea1.setText("textArea1"); textArea1.setBounds(new Rectangle(100, 173, 75, 39)); this.add(textField2, null); this.add(textField1, null); this.add(label2, null); this.add(label3, null); this.add(label4, null); this.add(label5, null); this.add(label1, null); this.add(choice1, null); this.add(choice2, null); this.add(textArea1, null); } //Get Applet information public String getAppletInfo() { return "Applet Information"; } //Get parameter info public String[][] getParameterInfo() { return null; } void textField2_actionPerformed(ActionEvent e) { } void textField1_actionPerformed(ActionEvent e) { }}class famouseUniversity_textField2_actionAdapter implements java.awt.event.ActionListener { famouseUniversity adaptee; famouseUniversity_textField2_actionAdapter(famouseUniversity adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.textField2_actionPerformed(e); }}class famouseUniversity_textField1_actionAdapter implements java.awt.event.ActionListener { famouseUniversity adaptee; famouseUniversity_textField1_actionAdapter(famouseUniversity adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.textField1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -