Package csa.gui

Examples of csa.gui.InternalFrameFileChoser.showOpenDialog()


    private void jButtonFileSelect1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFileSelect1ActionPerformed
        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("xml"+File.separator+"Tile"));
        FileNameExtensionFilter  filter = new  FileNameExtensionFilter("xml", "xml");
        fc.setFileFilter(filter);
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != fc.APPROVE_OPTION) return;
        String name = fc.getSelectedFile().getName();
        jTextFieldTileFile.setText(csa.util.UtilityString.replace(name, ".xml",""));
        jTextFieldTileFileActionPerformed(null);
}//GEN-LAST:event_jButtonFileSelect1ActionPerformed
View Full Code Here


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

        //        Configuration.getConfiguration().showFileChooserDialog("1", "2");
        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("images"));
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != InternalFrameFileChoser.APPROVE_OPTION) return;
        String fullPath = fc.getSelectedFile().getPath();
        fullPath = csa.util.Utility.makeRelative(fullPath);

        Configuration.getConfiguration().setBackImagePath(fullPath);
View Full Code Here

        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("xml\\Grafics"));
        fc.setCurrentDirectory(new java.io.File("Grafics"));
        FileNameExtensionFilter  filter = new  FileNameExtensionFilter("xml", "xml");
        fc.setFileFilter(filter);
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != fc.APPROVE_OPTION) return;
        String name = fc.getSelectedFile().getName();
        jTextFieldFile.setText(csa.util.UtilityString.replace(name, ".xml",""));
        jTextFieldFileFocusLost(null);
}//GEN-LAST:event_jButtonFileSelect1ActionPerformed
View Full Code Here

       
        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("xml"+File.separator+"Grafics"));
        FileNameExtensionFilter  filter = new  FileNameExtensionFilter("xml", "xml");
        fc.setFileFilter(filter);
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != fc.APPROVE_OPTION) return;
        String name = fc.getSelectedFile().getName();
        jTextFieldFile.setText(csa.util.UtilityString.replace(name, ".xml",""));
        jTextFieldFileActionPerformed(null);                                              
    }//GEN-LAST:event_jButtonFileSelect1ActionPerformed
View Full Code Here

        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("images"));
         FileNameExtensionFilter  filter = new  FileNameExtensionFilter("Images", "jpg", "jpeg", "png");
        fc.setFileFilter(filter);
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != fc.APPROVE_OPTION) return;
        String fullPath = fc.getSelectedFile().getAbsolutePath();
        jTextFieldImageSource.setText(csa.util.Utility.makeRelative(fullPath));
        setImage();
        inSetting++;
View Full Code Here

    private void jButtonFileSelect1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFileSelect1ActionPerformed
        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("xml"+File.separator+"Tile"));
        FileNameExtensionFilter  filter = new  FileNameExtensionFilter("xml", "xml");
        fc.setFileFilter(filter);
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != fc.APPROVE_OPTION) return;
        String name = fc.getSelectedFile().getName();
        jTextFieldTileFile.setText(csa.util.UtilityString.replace(name, ".xml",""));
        jTextFieldTileFileActionPerformed(null);                                              
    }//GEN-LAST:event_jButtonFileSelect1ActionPerformed
View Full Code Here

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

        //        Configuration.getConfiguration().showFileChooserDialog("1", "2");
        InternalFrameFileChoser fc = new csa.gui.InternalFrameFileChoser();
        fc.setCurrentDirectory(new java.io.File("images"));
        int r = fc.showOpenDialog(Configuration.getConfiguration().getMainFrame());
        if (r != fc.APPROVE_OPTION) return;
        String fullPath = fc.getSelectedFile().getPath();
        mPlayer.getData().mAvatarImage = csa.util.UtilityString.makeRelative(fullPath);
        try
        {
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.