?? frame1.java~2~
字號:
package seehtml;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class Frame1 extends JFrame { JPanel contentPane; XYLayout xYLayout1 = new XYLayout(); JLabel jLabel1 = new JLabel(); JTextField jTextField1 = new JTextField(); JLabel jLabel2 = new JLabel(); JLabel jLabel3 = new JLabel(); JLabel jLabel4 = new JLabel(); JLabel jLabel5 = new JLabel(); JLabel jLabel6 = new JLabel(); JScrollPane jScrollPane1 = new JScrollPane(); JTextArea jTextArea1 = new JTextArea(); //Construct the frame public Frame1() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); jLabel1.setText("請輸入網址:"); contentPane.setLayout(xYLayout1); this.setSize(new Dimension(537, 455)); this.setTitle("Frame Title"); jTextField1.setText("jTextField1"); jLabel2.setText("網絡協議:"); jLabel3.setText("網絡主機名:"); jLabel4.setText("文件名:"); jLabel5.setText("端口:"); jLabel6.setText("源文件:"); jTextArea1.setText(""); jScrollPane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); contentPane.add(jTextField1, new XYConstraints(198, 16, 233, 32)); contentPane.add(jLabel1, new XYConstraints(55, 18, 91, 31)); contentPane.add(jLabel2, new XYConstraints(60, 80, 370, 30)); contentPane.add(jLabel4, new XYConstraints(60, 140, 370, 30)); contentPane.add(jLabel3, new XYConstraints(60, 110, 370, 30)); contentPane.add(jLabel5, new XYConstraints(60, 170, 370, 30)); contentPane.add(jLabel6, new XYConstraints(59, 198, 134, 26)); contentPane.add(jScrollPane1, new XYConstraints(57, 227, 454, 217)); jScrollPane1.getViewport().add(jTextArea1, null); } //Overridden so we can exit when window is closed protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -