亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? propertiesdlg.java

?? 用JAVA程序來上BBS?這就是一個這樣的程序
?? JAVA
字號:
package JTerm;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.*;
/**
 * <p>Title: JTerm </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: Tsinghua</p>
 * @author Frank.Wang
 * @version 1.0
 */

public class PropertiesDlg extends JDialog {
  JLabel jLabel1 = new JLabel();
  JTextField slottimefield = new JTextField();
  JLabel jLabel2 = new JLabel();
  JLabel jLabel3 = new JLabel();
  JTextField dumycharfield = new JTextField();
  JLabel jLabel4 = new JLabel();
  JCheckBox autoreturn = new JCheckBox();
  JRadioButton RandomMsgBtn = new JRadioButton();
  JRadioButton SortMsgBtn = new JRadioButton();
  JScrollPane jScrollPane1 = new JScrollPane();
  DefaultListModel listMsg=new DefaultListModel();
  JList jList1 = new JList(listMsg);
  JLabel jLabel5 = new JLabel();
  JTextField MsgField = new JTextField();
  JButton jButton1 = new JButton();
  JButton jButton2 = new JButton();
  JButton jButton3 = new JButton();
  JButton jButton4 = new JButton();
  JCheckBox checkSound = new JCheckBox();

  public PropertiesDlg(Frame frame, String title, boolean modal) {
    super(frame, title, modal);
    try {
      jbInit();
      pack();
      this.setSize(500,300);

      Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
     Dimension frameSize = this.getSize();
     if (frameSize.height > screenSize.height) {
       frameSize.height = screenSize.height;
     }
     if (frameSize.width > screenSize.width) {
       frameSize.width = screenSize.width;
     }
     this.setLocation((screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
     this.setVisible(true);

    }
    catch(Exception ex) {
      ex.printStackTrace();
    }
  }

  public PropertiesDlg() {
    this(null, "", false);
  }
  private void jbInit() throws Exception {
    this.getContentPane().setLayout(null);
    jLabel1.setFont(new java.awt.Font("Monospaced", 0, 12));
    jLabel1.setText("每隔");
    jLabel1.setBounds(new Rectangle(79, 11, 34, 16));
    slottimefield.setFont(new java.awt.Font("Monospaced", 0, 12));
    slottimefield.setText("1");
    slottimefield.setBounds(new Rectangle(111, 6, 19, 22));
    jLabel2.setFont(new java.awt.Font("Monospaced", 0, 12));
    jLabel2.setText("秒發送一個");
    jLabel2.setBounds(new Rectangle(141, 10, 65, 16));
    jLabel3.setFont(new java.awt.Font("Monospaced", 0, 12));
    jLabel3.setText("發呆控制:");
    jLabel3.setBounds(new Rectangle(15, 11, 69, 16));
    dumycharfield.setFont(new java.awt.Font("Monospaced", 0, 12));
    dumycharfield.setText("19");
    dumycharfield.setBounds(new Rectangle(210, 8, 57, 18));
    jLabel4.setFont(new java.awt.Font("Monospaced", 0, 12));
    jLabel4.setText("號字符");
    jLabel4.setBounds(new Rectangle(279, 9, 42, 16));
    autoreturn.setFont(new java.awt.Font("Monospaced", 0, 12));
    autoreturn.setText("自動回復消息");
    autoreturn.setBounds(new Rectangle(11, 32, 119, 25));
    RandomMsgBtn.setFont(new java.awt.Font("Monospaced", 0, 12));
    RandomMsgBtn.setText("隨機回復");
    RandomMsgBtn.setBounds(new Rectangle(130, 32, 91, 25));
    RandomMsgBtn.addActionListener(new PropertiesDlg_RandomMsgBtn_actionAdapter(this));
    SortMsgBtn.setFont(new java.awt.Font("Monospaced", 0, 12));
    SortMsgBtn.setText("順序回復");
    SortMsgBtn.setBounds(new Rectangle(225, 32, 91, 25));
    SortMsgBtn.addActionListener(new PropertiesDlg_SortMsgBtn_actionAdapter(this));
    jScrollPane1.setBounds(new Rectangle(13, 91, 433, 114));
    this.setModal(true);
    jLabel5.setFont(new java.awt.Font("Monospaced", 0, 12));
    jLabel5.setText("回復消息");
    jLabel5.setBounds(new Rectangle(16, 64, 51, 16));
    MsgField.setFont(new java.awt.Font("Monospaced", 0, 12));
    MsgField.setToolTipText("");
    MsgField.setSelectionStart(7);
    MsgField.setText("對不起,我正忙!");
    MsgField.setBounds(new Rectangle(79, 60, 232, 22));
    jButton1.setBounds(new Rectangle(318, 59, 59, 25));
    jButton1.setFont(new java.awt.Font("Monospaced", 0, 12));
    jButton1.setRolloverEnabled(false);
    jButton1.setText("添加");
    jButton1.addActionListener(new PropertiesDlg_jButton1_actionAdapter(this));
    jButton2.setText("刪除");
    jButton2.addActionListener(new PropertiesDlg_jButton2_actionAdapter(this));
    jButton2.setRolloverEnabled(false);
    jButton2.setFont(new java.awt.Font("Monospaced", 0, 12));
    jButton2.setBounds(new Rectangle(385, 59, 59, 25));
    jButton3.setBounds(new Rectangle(244, 235, 73, 25));
    jButton3.setFont(new java.awt.Font("Monospaced", 0, 12));
    jButton3.setText("確定");
    jButton3.addActionListener(new PropertiesDlg_jButton3_actionAdapter(this));
    jButton4.setBounds(new Rectangle(351, 235, 73, 25));
    jButton4.setFont(new java.awt.Font("Monospaced", 0, 12));
    jButton4.setText("取消");
    jButton4.addActionListener(new PropertiesDlg_jButton4_actionAdapter(this));
    checkSound.setFont(new java.awt.Font("Monospaced", 0, 12));
    checkSound.setMargin(new Insets(2, 2, 2, 2));
    checkSound.setText("收到消息發提示音");
    checkSound.setBounds(new Rectangle(13, 216, 126, 25));
    checkSound.addActionListener(new PropertiesDlg_checkSound_actionAdapter(this));
    this.getContentPane().add(jLabel3, null);
    this.getContentPane().add(jLabel2, null);
    this.getContentPane().add(jLabel1, null);
    this.getContentPane().add(slottimefield, null);
    this.getContentPane().add(dumycharfield, null);
    this.getContentPane().add(jLabel4, null);
    this.getContentPane().add(autoreturn, null);
    this.getContentPane().add(RandomMsgBtn, null);
    this.getContentPane().add(SortMsgBtn, null);
    this.getContentPane().add(jScrollPane1, null);
    this.getContentPane().add(jLabel5, null);
    this.getContentPane().add(MsgField, null);
    this.getContentPane().add(jButton1, null);
    this.getContentPane().add(jButton2, null);
    this.getContentPane().add(jButton3, null);
    this.getContentPane().add(jButton4, null);
    this.getContentPane().add(checkSound, null);
    jScrollPane1.getViewport().add(jList1, null);
     java.util.Properties properties=System.getProperties();
     slottimefield.setText(properties.getProperty("DumySlotTime"));
     dumycharfield.setText(properties.getProperty("DumyChar"));
     String t=properties.getProperty("AutoReturnMsg");
     if (t!=null){
       if (t.compareTo("true") == 0)
         autoreturn.setSelected(true);
     }
     t=properties.getProperty("ReturnMethod");
     if (t!=null){
       if (t.compareTo("Sort") == 0) {
         SortMsgBtn.setSelected(true);
       }
       else {
         RandomMsgBtn.setSelected(true);
       }
     }
     t=properties.getProperty("SoundOn");
        if (t!=null){
          if (t.compareTo("true") == 0) {
            checkSound.setSelected(true);
          }
        }

  	try{
  	 String filename=System.getProperties().getProperty("user.dir")+java.io.File.separator+"message.dat";
  	 FileInputStream file = new FileInputStream(filename);
     InputStreamReader in = new InputStreamReader(file);
     String data="";
     char[] ch=new char[1];

     while(true){
       if (in.read(ch,0,1)==1){
       if (ch[0]=='\r'){
       	 listMsg.addElement(new String(data));
       	 data="";
        }if (ch[0]=='\n'){
        	data="";
		  continue;
       	}else{
       	  data+=ch[0];
       	}
          continue;
      }
      break;
     }
     in.close();
   }catch(Exception e){

   }

  }

  void jButton1_actionPerformed(ActionEvent e) {
    listMsg.addElement(MsgField.getText());
  }

  void RandomMsgBtn_actionPerformed(ActionEvent e) {
    SortMsgBtn.setSelected(false);
    RandomMsgBtn.setSelected(true);
  }

  void SortMsgBtn_actionPerformed(ActionEvent e) {
    SortMsgBtn.setSelected(true);
    RandomMsgBtn.setSelected(false);
  }

  void jButton2_actionPerformed(ActionEvent e) {
    if (jList1.getSelectedIndex()>=0){
      listMsg.remove(jList1.getSelectedIndex());
    }
  }

  void jButton3_actionPerformed(ActionEvent e) {
    java.util.Properties properties=System.getProperties();
    try{
        int slot=Integer.parseInt(slottimefield.getText());

    }catch(Exception err){
      JOptionPane.showMessageDialog(this,"請輸入合法的時間數字");
      return;
    }
    try{

          int ch=Integer.parseInt(dumycharfield.getText());
          if  (ch<0||ch>128){
                       throw new Exception("");
          }
    }catch(Exception err){
      JOptionPane.showMessageDialog(this,"請輸入合法的字符十進制數");
      return;
    }


     properties.setProperty("DumySlotTime",slottimefield.getText());
     properties.setProperty("DumyChar",dumycharfield.getText());
     properties.setProperty("AutoReturnMsg",(autoreturn.isSelected()?"true":"false"));
     properties.setProperty("SoundOn",(checkSound.isSelected()?"true":"false"));
     properties.setProperty("ReturnMethod",SortMsgBtn.isSelected()?"Sort":"Random");

   try{
   	  String filename=System.getProperties().getProperty("user.dir")+java.io.File.separator+"message.dat";
   	  FileOutputStream file = new FileOutputStream(filename);
      OutputStreamWriter out = new OutputStreamWriter(file);
      String data;
      int i=listMsg.size();
      System.out.println(i);
      for (i=0;i<listMsg.size();i++) {
        data=(String)listMsg.elementAt(i);
        out.write(data);
        out.write("\r\n");
        out.flush();
      }
      out.close();
    }catch(Exception err){

    }
     this.dispose();
  }

  void jButton4_actionPerformed(ActionEvent e) {
    this.dispose();
  }

  void checkSound_actionPerformed(ActionEvent e) {

  }


}

class PropertiesDlg_jButton1_actionAdapter implements java.awt.event.ActionListener {
  PropertiesDlg adaptee;

  PropertiesDlg_jButton1_actionAdapter(PropertiesDlg adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton1_actionPerformed(e);
  }
}

class PropertiesDlg_RandomMsgBtn_actionAdapter implements java.awt.event.ActionListener {
  PropertiesDlg adaptee;

  PropertiesDlg_RandomMsgBtn_actionAdapter(PropertiesDlg adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.RandomMsgBtn_actionPerformed(e);
  }
}

class PropertiesDlg_SortMsgBtn_actionAdapter implements java.awt.event.ActionListener {
  PropertiesDlg adaptee;

  PropertiesDlg_SortMsgBtn_actionAdapter(PropertiesDlg adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.SortMsgBtn_actionPerformed(e);
  }
}

class PropertiesDlg_jButton2_actionAdapter implements java.awt.event.ActionListener {
  PropertiesDlg adaptee;

  PropertiesDlg_jButton2_actionAdapter(PropertiesDlg adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton2_actionPerformed(e);
  }
}

class PropertiesDlg_jButton3_actionAdapter implements java.awt.event.ActionListener {
  PropertiesDlg adaptee;

  PropertiesDlg_jButton3_actionAdapter(PropertiesDlg adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton3_actionPerformed(e);
  }
}

class PropertiesDlg_jButton4_actionAdapter implements java.awt.event.ActionListener {
  PropertiesDlg adaptee;

  PropertiesDlg_jButton4_actionAdapter(PropertiesDlg adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.jButton4_actionPerformed(e);
  }
}

class PropertiesDlg_checkSound_actionAdapter implements java.awt.event.ActionListener {
  PropertiesDlg adaptee;

  PropertiesDlg_checkSound_actionAdapter(PropertiesDlg adaptee) {
    this.adaptee = adaptee;
  }
  public void actionPerformed(ActionEvent e) {
    adaptee.checkSound_actionPerformed(e);
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲福利一区二区| 在线观看www91| 91精品办公室少妇高潮对白| 日韩一级视频免费观看在线| 国产精品国产三级国产a| 日韩二区在线观看| 色综合久久久久久久久久久| 久久久国产一区二区三区四区小说 | 午夜影院久久久| 成人av网在线| 国产亚洲精品aa| 久久99久久99精品免视看婷婷 | 在线精品观看国产| 中文字幕乱码日本亚洲一区二区| 日韩电影免费一区| 欧美亚洲一区二区在线| 日韩久久一区二区| 国产成人av在线影院| 欧美r级电影在线观看| 日韩精品一级中文字幕精品视频免费观看| bt7086福利一区国产| 久久夜色精品一区| 精品一区二区三区久久| 欧美一级国产精品| 日本中文一区二区三区| 欧美日韩激情一区二区三区| 亚洲精品国产无套在线观| 成人动漫中文字幕| 国产精品毛片高清在线完整版 | 国产精品国产三级国产三级人妇| 国产一区二区在线电影| 欧美精品一区二区在线播放| 久久av资源网| 久久嫩草精品久久久精品| 久久97超碰色| 久久久久国产精品人| 国模娜娜一区二区三区| 26uuu亚洲综合色欧美| 精品一区二区日韩| 久久久久国产精品免费免费搜索| 韩国欧美国产1区| 国产日韩欧美精品电影三级在线| 国产盗摄女厕一区二区三区 | 777a∨成人精品桃花网| 日韩国产欧美一区二区三区| 7777女厕盗摄久久久| 久久国产婷婷国产香蕉| 国产欧美精品国产国产专区| 高清久久久久久| 亚洲猫色日本管| 欧美日韩一区二区在线观看视频 | 久久精品视频一区二区三区| 成人一级视频在线观看| 亚洲天堂中文字幕| 欧美视频精品在线观看| 日韩1区2区日韩1区2区| 久久久久免费观看| 一本久久综合亚洲鲁鲁五月天 | 欧美无乱码久久久免费午夜一区| 天堂久久久久va久久久久| 精品日产卡一卡二卡麻豆| 国产99久久久国产精品免费看| 亚洲日本护士毛茸茸| 欧美伦理影视网| 国产美女精品人人做人人爽| 综合久久久久久| 日韩一区二区视频在线观看| 国产精品一区二区久激情瑜伽| 亚洲欧美电影一区二区| 日韩午夜精品电影| 北条麻妃国产九九精品视频| 三级成人在线视频| 亚洲国产精品99久久久久久久久| 欧美三级三级三级| 国产精品99久久久久久久vr| 亚洲v日本v欧美v久久精品| 精品国产制服丝袜高跟| 色悠久久久久综合欧美99| 九一九一国产精品| 亚洲一区在线视频观看| 国产女主播在线一区二区| 欧美精品三级在线观看| 成人黄色在线网站| 麻豆成人在线观看| 一二三区精品福利视频| 欧美激情一区二区三区蜜桃视频| 欧美日韩精品是欧美日韩精品| 盗摄精品av一区二区三区| 日韩电影在线观看网站| 亚洲蜜臀av乱码久久精品蜜桃| 久久婷婷一区二区三区| 欧美日韩和欧美的一区二区| av一本久道久久综合久久鬼色| 麻豆国产欧美日韩综合精品二区| 一区二区三区在线不卡| 国产精品二三区| 久久久国际精品| 久久综合九色综合97_久久久| 91超碰这里只有精品国产| 日本高清视频一区二区| 不卡视频在线观看| 国产成人小视频| 国产精品66部| 国产在线视频一区二区三区| 麻豆精品久久久| 久久国产精品免费| 免费一区二区视频| 青青草成人在线观看| 午夜精品久久久久久不卡8050| 亚洲人成人一区二区在线观看| 国产精品久久综合| 国产精品欧美一级免费| 欧美激情综合五月色丁香小说| 久久久久久99精品| 国产欧美精品在线观看| 中文字幕成人av| 中文字幕一区二区三区不卡在线| 欧美国产精品v| 国产精品灌醉下药二区| 最新国产の精品合集bt伙计| 国产精品免费视频网站| 国产精品乱码妇女bbbb| 中文字幕av一区二区三区高| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品卡一卡二| 亚洲精品日韩综合观看成人91| 一区二区免费视频| 性做久久久久久免费观看| 日本视频一区二区三区| 国产综合色视频| 成人一区二区三区| 色激情天天射综合网| 欧美综合欧美视频| 欧美另类高清zo欧美| 日韩欧美中文字幕一区| 国产亚洲一二三区| 亚洲六月丁香色婷婷综合久久| 一区二区三区在线观看动漫| 五月婷婷激情综合网| 久久精品国产一区二区三区免费看| 国产一区二区女| www.久久久久久久久| 91丨九色丨黑人外教| 欧美日本一区二区三区四区| 精品国内二区三区| 国产精品久久久久久久久免费丝袜| 亚洲乱码国产乱码精品精小说| 午夜欧美电影在线观看| 国产综合色视频| 欧美又粗又大又爽| 久久久五月婷婷| 一区二区在线观看视频 | 精品伊人久久久久7777人| 成人午夜视频免费看| 欧美日韩亚洲综合一区二区三区| 日韩欧美高清dvd碟片| 综合久久综合久久| 美女免费视频一区| 色婷婷久久久久swag精品| 欧美不卡一区二区三区| 亚洲靠逼com| 国产精品一区免费在线观看| 欧美三级电影精品| 中文字幕av一区二区三区免费看| 日一区二区三区| va亚洲va日韩不卡在线观看| 日韩一级视频免费观看在线| 亚洲精品一卡二卡| 国产一区不卡在线| 91精品国产欧美一区二区成人| 国产精品久久福利| 黑人巨大精品欧美黑白配亚洲| 在线日韩av片| 国产精品久久久久影院亚瑟 | 亚洲图片有声小说| 成人激情开心网| 久久亚洲精品国产精品紫薇 | 亚洲精品日产精品乱码不卡| 韩国欧美一区二区| 日韩一区二区影院| 亚洲国产综合色| 暴力调教一区二区三区| 久久免费视频色| 久草这里只有精品视频| 欧美放荡的少妇| 亚洲va天堂va国产va久| 91免费国产在线| 国产精品成人免费精品自在线观看| 韩国精品免费视频| 欧美va亚洲va在线观看蝴蝶网| 亚洲妇熟xx妇色黄| 欧美亚洲国产一区在线观看网站 | 丝袜美腿亚洲综合| 欧美日韩中文精品| 亚洲美女免费视频| 色综合 综合色| 亚洲夂夂婷婷色拍ww47| 欧美在线制服丝袜| 亚洲成人资源在线| 在线成人高清不卡|