Package versusSNP.util.action

Examples of versusSNP.util.action.BrowseAction


    txtLabel.setPreferredSize(Size.dialog_textfield_label);
    txtPath1.setPreferredSize(Size.dialog_textfield_path);
    txtPath2.setPreferredSize(Size.dialog_textfield_path);
    btnBrowse1.setPreferredSize(Size.dialog_button_browse);
    btnBrowse2.setPreferredSize(Size.dialog_button_browse);
    btnBrowse1.addActionListener(new BrowseAction(txtPath1,
        new MyFileFilter[] {
          new MyFileFilter(new String[] { "txt" }, UICaption.dialog_filter_file_tabbed),
          new MyFileFilter(new String[] { "csv" }, UICaption.dialog_filter_file_csv)}));
    btnBrowse2.addActionListener(new BrowseAction(txtPath2,
        new MyFileFilter[] {new MyFileFilter(new String[] { "fas", "fasta" }, UICaption.dialog_filter_file_fasta)}));
//    txtLabel.getDocument().addDocumentListener(new EditAction(name));
    txtPath1.getDocument().addDocumentListener(new EditAction(path1));
    txtPath2.getDocument().addDocumentListener(new EditAction(path2));
    panel1.add(txtLabel);
View Full Code Here


    path = new StringBuffer();
    txtPath = new JTextField();
    btnBrowse = new JButton(UICaption.dialog_caption_browse);
    txtPath.setPreferredSize(Size.dialog_textfield_path);
    btnBrowse.setPreferredSize(Size.dialog_button_browse);
    btnBrowse.addActionListener(new BrowseAction(txtPath));
    txtPath.getDocument().addDocumentListener(new EditAction(path));
  }
View Full Code Here

    btnBrowse1 = new JButton(UICaption.dialog_caption_browse);
    btnBrowse2 = new JButton(UICaption.dialog_caption_browse);
    btnBrowse3 = new JButton(UICaption.dialog_caption_browse);
    btnBrowse1.addActionListener(new BrowseEnsureAction(txtPath1, "blastall"));
    btnBrowse2.addActionListener(new BrowseEnsureAction(txtPath2, "formatdb"));
    btnBrowse3.addActionListener(new BrowseAction(txtPath3, true));
    txtPath1.getDocument().addDocumentListener(new EditAction(blast_path));
    txtPath2.getDocument().addDocumentListener(new EditAction(formatdb_path));
    txtPath3.getDocument().addDocumentListener(new EditAction(temp_path));
    JPanel panel1 = new JPanel(new BorderLayout());
    JPanel panel2 = new JPanel(new BorderLayout());
View Full Code Here

        UICaption.panel_caption_snp });
    selector.addActionListener(new SelectAction(id));
    selector.setSelectedIndex(id.intValue());
    txtPath.setPreferredSize(Size.dialog_textfield_path);
    btnBrowse.setPreferredSize(Size.dialog_button_browse);
    btnBrowse.addActionListener(new BrowseAction(txtPath, JFileChooser.SAVE_DIALOG));
    txtPath.getDocument().addDocumentListener(new EditAction(path));
    panel.add(txtPath);
    panel.add(btnBrowse);
  }
View Full Code Here

TOP

Related Classes of versusSNP.util.action.BrowseAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.