Package weka.gui

Examples of weka.gui.ConverterFileChooser


        });

        JButton jBtFile = new JButton("Browse");
        jBtFile.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            ConverterFileChooser fc = new ConverterFileChooser(System.getProperty("user.dir"));
            fc.setDialogTitle("Save Instances As");
            int rval = fc.showSaveDialog(GUI.this);

            if (rval == JFileChooser.APPROVE_OPTION) {
              String filename = fc.getSelectedFile().toString();
              jTfFile.setText(filename);
            }
            dlg.setVisible(true);
          }
        });
View Full Code Here


    public ActionSetData() {
      super("Set Data", "Set Data File", "setdata", "ctrl A");
    } // c'tor

    public void actionPerformed(ActionEvent ae) {
      ConverterFileChooser fc = new ConverterFileChooser(System.getProperty("user.dir"));
      fc.setDialogTitle("Set Data File");
      int rval = fc.showOpenDialog(GUI.this);

      if (rval == JFileChooser.APPROVE_OPTION) {
        AbstractFileLoader loader = fc.getLoader();
        try {
          if (loader != null)
            m_Instances = loader.getDataSet();
          if (m_Instances.classIndex() == -1)
            m_Instances.setClassIndex(m_Instances.numAttributes() - 1);
View Full Code Here

   
    setConfirmExit(false);
    setLayout(new BorderLayout());
   
    // file dialog
    fileChooser = new ConverterFileChooser(new File(System.getProperty("user.dir")));
    fileChooser.setMultiSelectionEnabled(true);
   
    // menu
    menuBar        = new JMenuBar();
    menuFile       = new JMenu(Messages.getInstance().getString("ArffViewerMainPanel_CreatePanel_File_JMenu_Text"));
View Full Code Here

   
    setConfirmExit(false);
    setLayout(new BorderLayout());
   
    // file dialog
    fileChooser = new ConverterFileChooser(new File(System.getProperty("user.dir")));
    fileChooser.setMultiSelectionEnabled(true);
   
    // menu
    menuBar        = new JMenuBar();
    menuFile       = new JMenu("File");
View Full Code Here

        });

        JButton jBtFile = new JButton("Browse");
        jBtFile.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent ae) {
            ConverterFileChooser fc = new ConverterFileChooser(System.getProperty("user.dir"));
            fc.setDialogTitle("Save Instances As");
            int rval = fc.showSaveDialog(GUI.this);

            if (rval == JFileChooser.APPROVE_OPTION) {
              String filename = fc.getSelectedFile().toString();
              jTfFile.setText(filename);
            }
            dlg.setVisible(true);
          }
        });
View Full Code Here

    public ActionSetData() {
      super("Set Data", "Set Data File", "setdata", "ctrl A");
    } // c'tor

    public void actionPerformed(ActionEvent ae) {
      ConverterFileChooser fc = new ConverterFileChooser(System.getProperty("user.dir"));
      fc.setDialogTitle("Set Data File");
      int rval = fc.showOpenDialog(GUI.this);

      if (rval == JFileChooser.APPROVE_OPTION) {
        AbstractFileLoader loader = fc.getLoader();
        try {
          if (loader != null)
            m_Instances = loader.getDataSet();
          if (m_Instances.classIndex() == -1)
            m_Instances.setClassIndex(m_Instances.numAttributes() - 1);
View Full Code Here

TOP

Related Classes of weka.gui.ConverterFileChooser

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.