Package modbuspal.toolkit

Examples of modbuspal.toolkit.XFileChooser.showSaveDialog()


       
        // Create dialog
        JFileChooser saveDialog = new XFileChooser(XFileChooser.SLAVE_FILE);

        // show dialog
        saveDialog.showSaveDialog(this);

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

        if( exportFile == null )
View Full Code Here


    }

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

    private Runnable createProjectLoadingTask(final File projectFile, final WorkInProgressDialog dialog)
View Full Code Here

     */
    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.