📄 datatrans.java~1~
字号:
package datatrans;import java.awt.*;import java.awt.event.*;import java.applet.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2002</p> * <p>Company: </p> * @author unascribed * @version 1.0 */public class datatrans extends Applet { boolean isStandalone = false; XYLayout xYLayout1 = new XYLayout(); Label label1 = new Label(); TextField textField1 = new TextField(); Button button1 = new Button(); TextField textField2 = new TextField(); //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 datatrans() { } //Initialize the applet public void init() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { label1.setText("计算sin() x="); this.setLayout(xYLayout1); button1.setLabel("开始计算"); textField2.setEditable(false); this.add(label1, new XYConstraints(31, 17, 91, 26)); this.add(textField1, new XYConstraints(133, 20, 132, 24)); this.add(button1, new XYConstraints(66, 60, 166, 31)); this.add(textField2, new XYConstraints(47, 113, 218, 30)); } //Get Applet information public String getAppletInfo() { return "Applet Information"; } //Get parameter info public String[][] getParameterInfo() { return null; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -