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

📄 frame1.java~1~

📁 本程序是运用java 语言 编写一款查看 网站源文件的程序
💻 JAVA~1~
字号:
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("jLabel2");    jLabel3.setText("jLabel3");    jLabel4.setText("jLabel4");    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(62, 82, 373, 32));    contentPane.add(jLabel4, new XYConstraints(60, 145, 391, 30));    contentPane.add(jLabel3, new XYConstraints(60, 112, 433, 33));    contentPane.add(jLabel5, new XYConstraints(56, 182, 396, 25));    contentPane.add(jLabel6,  new XYConstraints(52, 223, 134, 26));    contentPane.add(jScrollPane1,  new XYConstraints(55, 260, 454, 180));    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 + -