DacWizard/src/main/java/jme3utilities/minie/wizard/TestMode.java
/**
     * Write the control configuration to a file.
     */
Write the control configuration to a file.
Write the control configuration to a file .
private void saveJava() {
        String hhmmss = hhmmss();
        String fileName = String.format("configure%s.java", hhmmss);
        DacWizard wizard = DacWizard.getApplication();
        DynamicAnimControl dac = wizard.findDac();
        TestScreen screen = DacWizard.findAppState(TestScreen.class);
        String path = DacWizard.filePath(fileName);
        File file = new File(path);
        try (PrintStream stream = new PrintStream(file)) {
            write(dac, stream);
        } catch (FileNotFoundException exception) {
            screen.showInfoDialog("Exception", exception.toString());
            return;
        }
        /*
         * Display a confirmation dialog.
         */
        String message = String.format(
                "The configuration has been written to%n%s.",
                MyString.quote(path));
        screen.showInfoDialog("Success", message);
    }
private void saveJava ( ) { String hhmmss = hhmmss ( ) ; String fileName = String . format ( "configure%s.java" , hhmmss ) ; DacWizard wizard = DacWizard . getApplication ( ) ; DynamicAnimControl dac = wizard . findDac ( ) ; TestScreen screen = DacWizard . findAppState ( TestScreen . class ) ; String path = DacWizard . filePath ( fileName ) ; File file = new File ( path ) ; try ( PrintStream stream = new PrintStream ( file ) ) { write ( dac , stream ) ; } catch ( FileNotFoundException exception ) { screen . showInfoDialog ( "Exception" , exception . toString ( ) ) ; return ; } /*
         * Display a confirmation dialog.
         */ String message = String . format ( "The configuration has been written to%n%s." , MyString . quote ( path ) ) ; screen . showInfoDialog ( "Success" , message ) ; }
Write the control configuration to a file.
Write the control configuration to a file .