Examples of XFileChooser


Examples of modbuspal.toolkit.XFileChooser

            exportBindings = optionDialog.exportBindings();
            exportAutomations = optionDialog.exportAutomations();
        }
       
        // Create dialog
        JFileChooser saveDialog = new XFileChooser(XFileChooser.SLAVE_FILE);

        // show dialog
        saveDialog.showSaveDialog(this);

        // get selected file
        File exportFile = saveDialog.getSelectedFile();

        if( exportFile == null )
        {
            setStatus("Cancelled by user.");
            return;
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser

    }//GEN-LAST:event_loopToggleButtonActionPerformed

    private void exportButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_exportButtonActionPerformed

        // newInstance and setup dialog
        JFileChooser chooser = new XFileChooser(XFileChooser.AUTOMATION_FILE);

        chooser.showDialog(this, "Export");
        File target = chooser.getSelectedFile();
        if( target != null )
        {
            try
            {
                exportAutomation(target);
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser

    }//GEN-LAST:event_exportButtonActionPerformed

    private void importButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_importButtonActionPerformed

        // create dialog
        JFileChooser loadDialog = new XFileChooser(XFileChooser.SLAVE_FILE);

        // show dialog
        setStatus("Importing...");
        loadDialog.showOpenDialog(this);

        // get selected file
        File importFile = loadDialog.getSelectedFile();

        if( importFile == null )
        {
            setStatus("Import cancelled by user.");
            return;
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser

    }//GEN-LAST:event_stepTextFieldFocusLost

    private void importButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_importButtonActionPerformed

        // newInstance and setup dialog
        JFileChooser chooser = new XFileChooser(XFileChooser.AUTOMATION_FILE);

        chooser.showDialog(this, "Import");
        File target = chooser.getSelectedFile();
        if( target == null )
        {
            return;
        }
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser



    private File chooseRecordFile()
    {
        XFileChooser fc = new XFileChooser( XFileChooser.RECORDER_FILE );
        fc.showOpenDialog(this);
        File src = fc.getSelectedFile();
        modbusPalProject.linkReplayFile = src;
        setReplayFile(src);
        return src;
    }
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser

        slavesListView.setVisible(b);
    }

    protected File selectProjectFileToOpen()
    {
        JFileChooser loadDialog = new XFileChooser(XFileChooser.PROJECT_FILE);
        loadDialog.showOpenDialog(null);
        File projectFile = loadDialog.getSelectedFile();
        return projectFile;
    }
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser

        return projectFile;
    }

    protected File selectProjectFileToSave()
    {
        JFileChooser loadDialog = new XFileChooser(XFileChooser.PROJECT_FILE);
        loadDialog.showSaveDialog(null);
        File projectFile = loadDialog.getSelectedFile();
        return projectFile;
    }
View Full Code Here

Examples of modbuspal.toolkit.XFileChooser

     * @throws IOException
     */
    public static void start()
    throws IOException
    {
        XFileChooser fc = new XFileChooser(XFileChooser.RECORDER_FILE);
        fc.showSaveDialog(null);
        File destFile = fc.getSelectedFile();
        if( destFile!= null )
        {
            System.out.println("recording into "+destFile.getPath());
            uniqInst.setOutput( new FileWriter(destFile) );
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.