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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? optiondialog.java

?? ∥顯示數(shù)據(jù)文件未壓縮大小及壓縮大小單行文本顯示域存儲(chǔ)隨機(jī)生成的數(shù)據(jù)
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
package org.jr.jzj;

/**
 * <p>Copyright: Copyright (c) 2002-2003</p>
 * <p>Company: JavaResearch(http://www.javaresearch.org)</p>
 * <p>最后更新日期:2003年3月12日
 * @author Cherami,Barney,Brain
 * @version 0.8
 */

import java.io.*;
import java.util.prefs.*;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.text.*;

import org.jr.swing.*;
import org.jr.swing.util.*;
import org.jr.util.*;

/**
 * 選項(xiàng)對(duì)話框。
 */

public class OptionDialog
    extends JDialog {
  public final static String PP_NAME = "options";
  private static final String[] loglevels = {
      "OFF", "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "ALL"};

  private final static Color borderColor = new Color(148, 145, 140);
  private static JZJLogger logger = new JZJLogger(OptionDialog.class);
  Preferences preference = JZipJar.preference;
  JZJResources resource = JZJResources.getResources();

  /**
   * panels
   */
  JTabbedPane tabctrl = new JTabbedPane();
  JPanel bottomPanel = new JPanel();
  ViewPanel viewpanel;
  ToolbarPanel toolbarpanel;
  JPanel folderspanel;
  JPanel locpanel;
  JPanel mispanel;

  BorderLayout borderLayout = new BorderLayout();
  JButton okButton;
  JButton applyButton;
  JButton cancelButton;
  JButton selectButton;
  JButton viewerButton;
  JButton scannerButton;

  //
  JTextField tfviewer = new JTextField();
  JTextField tfscanner = new JTextField();
  //
  JCheckBox cbautoopen = new JCheckBox();
  JSpinner sprecentfiles = new JSpinner();
  JComboBox cbbloglevel = new JComboBox();
  //
  JRadioButton rbdefault = new JRadioButton();
  JRadioButton rblast_s = new JRadioButton();
  JRadioButton rbfolder_s = new JRadioButton();
  JTextField tfstartup = new JTextField();
  JButton startupButton;
  //
  JRadioButton rbopen_e = new JRadioButton();
  JRadioButton rblast_e = new JRadioButton();
  JRadioButton rbfolder_e = new JRadioButton();
  JTextField tfextract = new JTextField();
  JButton extractButton;
  //
  JRadioButton rbopen_a = new JRadioButton();
  JRadioButton rblast_a = new JRadioButton();
  JRadioButton rbfolder_a = new JRadioButton();
  JTextField tfadd = new JTextField();
  JButton addButton;
  //
  JTextField tfwork = new JTextField();
  JButton workButton;

  public OptionDialog(Frame frame) {
    super(frame, true);
    try {
      init();
    }
    catch (Exception ex) {
      ex.printStackTrace();
    }
  }

  private void init() throws Exception {
    Container container = this.getContentPane();

    container.setLayout(borderLayout);
    setTitle(resource.getString("o_title"));

    buildClient();
    container.add(tabctrl, BorderLayout.CENTER);
    buildBottomPanel();
    container.add(bottomPanel, BorderLayout.SOUTH);

    setSize(480, 360);
  }

  private void buildClient() {

    //viewpanel = buildViewPanel();
    viewpanel = new ViewPanel();
    tabctrl.add(resource.getString("o_view_title"), viewpanel);
    toolbarpanel = new ToolbarPanel();
    tabctrl.add(resource.getString("o_toolbar_title"), toolbarpanel);
    folderspanel = buildFoldersPanel();
    tabctrl.add(resource.getString("o_folder_title"), folderspanel);
    locpanel = buildLocationsPanel();
    tabctrl.add(resource.getString("o_location_title"), locpanel);
    mispanel = buildMisPanel();
    tabctrl.add(resource.getString("o_mis_title"), mispanel);
  }

  private void buildBottomPanel() {
    applyButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                                getObject("o_b_apply"));
    //applyButton = createButton("o_b_apply");
    bottomPanel.add(applyButton, null);
    applyButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        OptionDialog.this.onOK();
      }
    });

    okButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                             getObject("o_b_ok"));
    bottomPanel.add(okButton, null);
    //添加事件監(jiān)聽(tīng)器,確定按鈕按下的時(shí)候
    //
    okButton.addActionListener(new OKAction());

    cancelButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                                 getObject("o_b_cancel"));
    cancelButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        OptionDialog.this.onCancel();
        OptionDialog.this.setVisible(false);
      }
    });
    bottomPanel.add(cancelButton, null);

    okButton.registerKeyboardAction(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        OptionDialog.this.setVisible(false);
      }
    }

    , KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
        JComponent.WHEN_IN_FOCUSED_WINDOW);

  }

  /**
   * 創(chuàng)建文件夾面板
   * @return
   */
  private JPanel buildFoldersPanel() {
    int basex = 8, basey = 16; //坐標(biāo)基礎(chǔ)
    int vh = 125, vw = 232; //表格panel的基礎(chǔ)
    int height = 20, width = 100; //ctrl的尺寸

    JPanel p = new JPanel();
    p.setLayout(null);

    ///////////////////////////////////////////////////////////////////////////////
    JPanel ps = new JPanel();
    ps.setBounds(0, 0, vw, vh);
    ps.setLayout(null);
    p.add(ps, null);
    String[] o_f_startup = resource.getStringArray("o_f_startup");
    ps.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white,
        borderColor), o_f_startup[0]));
    ButtonGroup sp = new ButtonGroup();
    sp.add(rbdefault);
    sp.add(rblast_s);
    sp.add(rbfolder_s);
    rbdefault.setText(o_f_startup[1]);
    rbdefault.setBounds(basex, basey, 160, height);
    ps.add(rbdefault);

    rblast_s.setText(o_f_startup[2]);
    rblast_s.setBounds(basex, basey + 1 * height, 160, height);
    ps.add(rblast_s);

    rbfolder_s.setText(o_f_startup[3]);
    rbfolder_s.setBounds(basex, basey + 2 * height, 70, height);
    ps.add(rbfolder_s);

    tfstartup.setBounds(basex + 70, basey + 2 * height, 100, height);
    ps.add(tfstartup);

    startupButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                                  getObject("o_b_browsebtn"));
    startupButton.setBounds(basex + 180, basey + 2 * height, height, height);
    startupButton.addActionListener(new SelectPathAction(tfstartup, rbfolder_s));
    ps.add(startupButton, null);
    //////////////////////////////////////////////////

    ///////////////////////////////////////////////////////////////////////////////
    JPanel pe = new JPanel();
    pe.setBounds(0, vh, vw, vh);
    pe.setLayout(null);
    p.add(pe, null);
    String[] o_f_extract = resource.getStringArray("o_f_extract");
    pe.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white,
        borderColor), o_f_extract[0]));

    ButtonGroup ep = new ButtonGroup();
    ep.add(rbopen_e);
    ep.add(rblast_e);
    ep.add(rbfolder_e);

    rbopen_e.setText(o_f_extract[1]);
    rbopen_e.setBounds(basex, basey, 160, height);
    pe.add(rbopen_e);

    rblast_e.setText(o_f_extract[2]);
    rblast_e.setBounds(basex, basey + 1 * height, 160, height);
    pe.add(rblast_e);

    rbfolder_e.setText(o_f_extract[3]);
    rbfolder_e.setBounds(basex, basey + 2 * height, 70, height);
    pe.add(rbfolder_e);

    tfextract.setBounds(basex + 70, basey + 2 * height, 100, height);
    pe.add(tfextract);

    extractButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                                  getObject("o_b_browsebtn"));
    extractButton.setBounds(basex + 180, basey + 2 * height, height, height);
    extractButton.addActionListener(new SelectPathAction(tfextract, rbfolder_e));
    pe.add(extractButton, null);
    //////////////////////////////////////////////////

    ///////////////////////////////////////////////////////////////////////////////
    JPanel pa = new JPanel();
    pa.setBounds(vw, 0, vw, vh);
    pa.setLayout(null);
    p.add(pa, null);
    String[] o_f_add = resource.getStringArray("o_f_add");
    pa.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white,
        borderColor), o_f_add[0]));

    ButtonGroup ap = new ButtonGroup();
    ap.add(rbopen_a);
    ap.add(rblast_a);
    ap.add(rbfolder_a);

    rbopen_a.setText(o_f_add[1]);
    rbopen_a.setBounds(basex, basey, 160, height);
    pa.add(rbopen_a);

    rblast_a.setText(o_f_add[2]);
    rblast_a.setBounds(basex, basey + 1 * height, 160, height);
    pa.add(rblast_a);

    rbfolder_a.setText(o_f_add[3]);
    rbfolder_a.setBounds(basex, basey + 2 * height, 70, height);
    pa.add(rbfolder_a);

    tfadd.setBounds(basex + 70, basey + 2 * height, 100, height);
    pa.add(tfadd);

    addButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                              getObject("o_b_browsebtn"));
    addButton.setBounds(basex + 180, basey + 2 * height, height, height);
    addButton.addActionListener(new SelectPathAction(tfadd, rbfolder_a));
    pa.add(addButton, null);
    //////////////////////////////////////////////////

    JPanel pw = new JPanel();
    pw.setBounds(vw, vh, vw, vh);
    pw.setLayout(null);
    p.add(pw, null);
    String[] o_f_work = resource.getStringArray("o_f_work");
    pw.setBorder(new TitledBorder(BorderFactory.createEtchedBorder(Color.white,
        borderColor), o_f_work[0]));

    tfwork.setBounds(basex + 6, basey + 0 * height + 6, 150, height);
    pw.add(tfwork);

    workButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                               getObject("o_b_browsebtn"));
    workButton.setBounds(basex + 160, basey + 0 * height + 6, height, height);
    workButton.addActionListener(new SelectPathAction(tfwork, null));
    pw.add(workButton, null);

    onCancel_Folders();
    return p;
  }

  /**
   * 程序位置面板
   * @return
   */
  private JPanel buildLocationsPanel() {
    int basex = 16, basey = 10;
    int height = 20, width = 160;

    JLabel label;
    JPanel p = new JPanel();
    p.setLayout(null);
    label = new JLabel(resource.getString("o_l_viewer"));
    label.setBounds(basex, basey, 100, height);
    p.add(label, null);
    tfviewer.setBounds(basex, basey + 1 * height, width, height);
    p.add(tfviewer, null);
    viewerButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                                 getObject("o_b_browsebtn"));
    viewerButton.setBounds(basex + width + 20, basey + 1 * height, height,
                           height);
    viewerButton.addActionListener(new BrowseAction(tfviewer));
    p.add(viewerButton, null);

    label = new JLabel(resource.getString("o_l_virusscanner"));
    label.setBounds(basex, basey + 2 * height, 100, height);
    p.add(label, null);
    tfscanner.setBounds(basex, basey + 3 * height, width, height);
    p.add(tfscanner, null);
    scannerButton = SwingUtil.createDynamicButton( (ButtonProperty) resource.
                                                  getObject("o_b_browsebtn"));
    scannerButton.setBounds(basex + width + 20, basey + 3 * height, height,
                            height);
    scannerButton.addActionListener(new BrowseAction(tfscanner));
    p.add(scannerButton, null);

    onCancel_Programlocations();
    return p;
  }

  /**
   * 其他雜項(xiàng)面板
   * @return
   */
  private JPanel buildMisPanel() {
    int basex = 16, basey = 10;
    int height = 28, width = 160;

    JLabel label;
    JPanel p = new JPanel();
    p.setLayout(null);

    cbautoopen.setText(resource.getString("o_m_autoopen"));
    cbautoopen.setBounds(basex, basey, 360, height);
    p.add(cbautoopen);

    label = new JLabel(resource.getString("o_m_recentfiles"));
    label.setBounds(basex, basey + 1 * height, 220, height);
    sprecentfiles.setBounds(basex + 220, basey + 1 * height, 40, height);
//      sprecentfiles.setm
    p.add(sprecentfiles, null);
    p.add(label, null);
    SpinnerNumberModel model = new SpinnerNumberModel(4, 4, 10, 1);
    sprecentfiles.setModel(model);

    label = new JLabel(resource.getString("o_m_loglevel"));
    label.setBounds(basex, basey + 2 * height, 100, height);

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米色一区二区三区四区| 久久久久久久久久久电影| 欧美一区二区三区小说| 精品国产一区二区三区久久影院| 国产精品每日更新| 亚洲午夜激情av| 国产精品一级片| 欧美在线观看一区二区| 欧美成人伊人久久综合网| 国产精品欧美久久久久无广告| 亚洲一区二区三区视频在线 | 91浏览器入口在线观看| 欧美日本在线看| 久久久精品中文字幕麻豆发布| 亚洲另类色综合网站| 精品一二线国产| 91美女片黄在线观看| 精品日韩一区二区三区| 亚洲人成网站色在线观看| 韩国v欧美v日本v亚洲v| 日本韩国一区二区| 久久精品视频一区二区三区| 亚洲国产精品天堂| 成人免费福利片| 日韩一区中文字幕| 国产真实乱偷精品视频免| 在线视频亚洲一区| 久久久久久久电影| 三级欧美韩日大片在线看| 成人v精品蜜桃久久一区| 日韩一级免费一区| 亚洲亚洲人成综合网络| 成人毛片在线观看| 欧美精品一区二区三区四区| 五月综合激情网| 99久久久无码国产精品| 久久久久久久久97黄色工厂| 视频在线观看国产精品| 91久久精品一区二区| 日本一区免费视频| 美女网站色91| 欧美区一区二区三区| 亚洲男同1069视频| www.亚洲激情.com| 国产欧美一区二区精品性色超碰| 麻豆中文一区二区| 欧美美女网站色| 亚洲一区二区三区四区不卡| av电影天堂一区二区在线观看| 久久久精品免费观看| 免费观看30秒视频久久| 欧美日韩成人综合在线一区二区| 亚洲精品少妇30p| 99这里都是精品| 国产免费成人在线视频| 国产麻豆视频一区| 精品国产一区二区三区av性色| 亚洲成av人**亚洲成av**| 91福利小视频| 一区二区三区四区乱视频| 91性感美女视频| 亚洲欧美一区二区在线观看| 99国产麻豆精品| 亚洲国产成人一区二区三区| 国产精品一二三区在线| 久久午夜免费电影| 国产精品一区免费在线观看| 精品盗摄一区二区三区| 久久精品国产免费| 日韩欧美综合在线| 久久成人久久爱| 精品蜜桃在线看| 精品综合免费视频观看| 久久婷婷国产综合精品青草| 国产一区激情在线| 久久久久久黄色| www.亚洲精品| 国产一区高清在线| 久久久久久久久久久久久夜| 风流少妇一区二区| 国产精品丝袜一区| 99精品1区2区| 亚洲欧洲99久久| 欧洲另类一二三四区| 亚洲国产另类精品专区| 欧美理论片在线| 久久精品国产久精国产| 久久亚洲精品国产精品紫薇 | 欧美激情一区二区三区不卡 | 中文字幕不卡在线播放| 成人国产免费视频| 亚洲特黄一级片| 欧美性色欧美a在线播放| 日韩精品91亚洲二区在线观看| 日韩三区在线观看| 成人午夜视频在线观看| 一区二区三区免费看视频| 欧美欧美午夜aⅴ在线观看| 久久精品国产**网站演员| 久久九九久久九九| 91麻豆免费观看| 日韩国产一二三区| 久久伊人中文字幕| 91麻豆精品一区二区三区| 亚洲一区二区美女| 精品国产三级电影在线观看| 丁香激情综合国产| 一区二区三区精品视频| 欧美一区二区三区播放老司机| 韩国欧美一区二区| 亚洲欧美偷拍另类a∨色屁股| 欧美人妖巨大在线| 国产传媒久久文化传媒| 亚洲一区在线观看免费观看电影高清| 91精品国产黑色紧身裤美女| 国产精品99久久久久久久女警| 亚洲视频一区二区在线| 777欧美精品| 成人免费视频免费观看| 亚洲成人先锋电影| 国产欧美一区二区精品忘忧草| 欧洲av一区二区嗯嗯嗯啊| 久久成人免费网| 一区二区三区欧美在线观看| 欧美成人精品福利| av激情亚洲男人天堂| 玖玖九九国产精品| 一区二区三区四区视频精品免费| 精品免费日韩av| 在线亚洲免费视频| 国产在线精品一区二区| 亚洲男人都懂的| 亚洲综合成人网| 久久综合视频网| 欧美日韩一区二区三区在线| 丰满亚洲少妇av| 日韩av一级片| 亚洲欧美国产77777| 2017欧美狠狠色| 在线成人免费观看| 91亚洲资源网| 国产成人精品www牛牛影视| 亚洲成人精品影院| 亚洲欧洲国产专区| 久久夜色精品国产欧美乱极品| 欧美日韩国产综合视频在线观看 | 国产日韩欧美精品综合| 9191成人精品久久| 色综合激情五月| 高清久久久久久| 久久精品国产久精国产| 午夜影视日本亚洲欧洲精品| 亚洲欧洲一区二区在线播放| 国产丝袜欧美中文另类| 日韩精品一区二| 欧美夫妻性生活| 欧美色国产精品| 色狠狠一区二区| 99精品国产热久久91蜜凸| 国产精品一级在线| 韩国精品一区二区| 青青草视频一区| 丝袜国产日韩另类美女| 亚洲国产视频一区二区| 亚洲精品视频在线看| 国产精品久久久久影视| 久久精品一区二区三区四区| 精品国产乱码久久久久久影片| 欧美一二三四区在线| 在线不卡中文字幕| 欧美精品高清视频| 欧美日韩在线观看一区二区| 欧洲精品一区二区三区在线观看| 色综合久久综合网97色综合| 成人深夜福利app| www.亚洲激情.com| 成人av免费观看| 不卡的电影网站| 不卡的电影网站| 99re6这里只有精品视频在线观看| 国产成人精品www牛牛影视| 国产成人夜色高潮福利影视| 国产精品一区二区久久精品爱涩| 国内久久婷婷综合| 国内精品国产成人| 激情综合亚洲精品| 国产精品中文有码| 国产成人午夜99999| 国产成人一区在线| av影院午夜一区| 91在线看国产| 色婷婷亚洲精品| 欧美性猛交xxxx黑人交| 欧美日韩激情在线| 日韩欧美激情一区| 久久精品人人爽人人爽| 日韩av一级片| 国产乱人伦偷精品视频免下载| 国产精品 欧美精品| 99视频一区二区|