Package GUI

Source Code of GUI.SelectProjectDlg

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* SelectProject.java
*
* Created on Sep 7, 2009, 9:29:29 AM
*/
package GUI;

import Core.Data;
import Core.DataManager;
import java.io.FileNotFoundException;
import java.io.IOException;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileNameExtensionFilter;
import jxl.read.biff.BiffException;

/**
*
* @author M Shakeer Anver
*/
public class SelectProjectDlg extends javax.swing.JDialog {

    String filePath;
    Data data;
    FinishDlg finishDlg;
    SaveAndFinishDlg saveNfinDlg;
    mainForm mainForm;

    /**
     * Gets the current data
     * @return current data
     */
    public Data getData() {
        return data;
    }

    /**
     * Sets the data to be used
     * @param data Data to be used
     */
    public void setData(Data data) {
        this.data = data;
    }

    /**
     * Gets the file path of the current project
     * @return File path of the current project
     */
    public String getProjectPath() {
        return saveNfinDlg.getFilePath();
    }

    /** Creates new form SelectProject
     * @param parent Parent window
     * @param modal Determines the modality of the window
     */
    public SelectProjectDlg(mainForm parent, boolean modal) {
        super(parent, modal);
        initComponents();
        data = new Data();
        finishDlg = new FinishDlg(parent, true);
        saveNfinDlg = new SaveAndFinishDlg(parent, true);
        mainForm = parent;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        buttonGroup2 = new javax.swing.ButtonGroup();
        stepsPnl = new javax.swing.JPanel();
        jTextField1 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jTextField5 = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        welcomPnl = new javax.swing.JPanel();
        welcomeLbl = new javax.swing.JLabel();
        whatToDoLbl = new javax.swing.JLabel();
        createNewLbl = new javax.swing.JRadioButton();
        openExistinLbl = new javax.swing.JRadioButton();
        manualEntryLbl = new javax.swing.JRadioButton();
        importExisitingLbl = new javax.swing.JRadioButton();
        importExistingBrowseTxtFld = new javax.swing.JTextField();
        openExisitingBrowseTxtFld = new javax.swing.JTextField();
        importExisitingBrowseBtn = new javax.swing.JButton();
        openExistingBrowseBtn = new javax.swing.JButton();
        helpBtn = new javax.swing.JButton();
        nextBtn = new javax.swing.JButton();
        backBtn = new javax.swing.JButton();
        cancelBtn = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("WinSIS START UP WIZARD - Select Project");
        setModal(true);
        setResizable(false);

        stepsPnl.setBackground(new java.awt.Color(255, 255, 255));
        stepsPnl.setPreferredSize(new java.awt.Dimension(150, 250));

        jTextField1.setEditable(false);
        jTextField1.setFont(new java.awt.Font("Verdana", 1, 11));
        jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
        jTextField1.setText("Steps");
        jTextField1.setBorder(null);

        jTextField4.setFont(new java.awt.Font("Verdana", 1, 11));
        jTextField4.setText("1 - Select Project");
        jTextField4.setBorder(null);
        jTextField4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField4ActionPerformed(evt);
            }
        });

        jTextField5.setFont(new java.awt.Font("Verdana", 0, 11));
        jTextField5.setText("2 - Save and Finish");
        jTextField5.setBorder(null);
        jTextField5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField5ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout stepsPnlLayout = new javax.swing.GroupLayout(stepsPnl);
        stepsPnl.setLayout(stepsPnlLayout);
        stepsPnlLayout.setHorizontalGroup(
            stepsPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(stepsPnlLayout.createSequentialGroup()
                .addGap(55, 55, 55)
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(60, Short.MAX_VALUE))
            .addGroup(stepsPnlLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
            .addGroup(stepsPnlLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, Short.MAX_VALUE))
            .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 158, Short.MAX_VALUE)
        );
        stepsPnlLayout.setVerticalGroup(
            stepsPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(stepsPnlLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(145, Short.MAX_VALUE))
        );

        welcomPnl.setPreferredSize(new java.awt.Dimension(320, 250));

        welcomeLbl.setFont(new java.awt.Font("Verdana", 1, 11));
        welcomeLbl.setText("WELCOME TO WinSIS STARTUP WIZARD");

        whatToDoLbl.setFont(new java.awt.Font("Verdana", 0, 11));
        whatToDoLbl.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        whatToDoLbl.setText("What do you want to do?");

        buttonGroup1.add(createNewLbl);
        createNewLbl.setFont(new java.awt.Font("Verdana", 0, 11));
        createNewLbl.setText("Create new project");
        createNewLbl.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                createNewLblActionPerformed(evt);
            }
        });

        buttonGroup1.add(openExistinLbl);
        openExistinLbl.setFont(new java.awt.Font("Verdana", 0, 11));
        openExistinLbl.setSelected(true);
        openExistinLbl.setText("Open existing project");
        openExistinLbl.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                openExistinLblActionPerformed(evt);
            }
        });

        buttonGroup2.add(manualEntryLbl);
        manualEntryLbl.setFont(new java.awt.Font("Verdana", 0, 11));
        manualEntryLbl.setText("Manual data entry");
        manualEntryLbl.setEnabled(false);
        manualEntryLbl.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                manualEntryLblActionPerformed(evt);
            }
        });

        buttonGroup2.add(importExisitingLbl);
        importExisitingLbl.setFont(new java.awt.Font("Verdana", 0, 11));
        importExisitingLbl.setText("Import existing data");
        importExisitingLbl.setEnabled(false);
        importExisitingLbl.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                importExisitingLblActionPerformed(evt);
            }
        });

        importExistingBrowseTxtFld.setEnabled(false);

        openExisitingBrowseTxtFld.setMaximumSize(new java.awt.Dimension(200, 2147483647));

        importExisitingBrowseBtn.setText("...");
        importExisitingBrowseBtn.setEnabled(false);
        importExisitingBrowseBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                importExisitingBrowseBtnActionPerformed(evt);
            }
        });

        openExistingBrowseBtn.setText("...");
        openExistingBrowseBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                openExistingBrowseBtnActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout welcomPnlLayout = new javax.swing.GroupLayout(welcomPnl);
        welcomPnl.setLayout(welcomPnlLayout);
        welcomPnlLayout.setHorizontalGroup(
            welcomPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(welcomPnlLayout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addGroup(welcomPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(openExistinLbl)
                    .addComponent(createNewLbl)
                    .addComponent(whatToDoLbl)
                    .addGroup(welcomPnlLayout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addGroup(welcomPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(openExisitingBrowseTxtFld, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(importExisitingLbl, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(manualEntryLbl, javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, welcomPnlLayout.createSequentialGroup()
                                .addGap(21, 21, 21)
                                .addComponent(importExistingBrowseTxtFld, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(welcomPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(openExistingBrowseBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(importExisitingBrowseBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(welcomeLbl))
                .addContainerGap(26, Short.MAX_VALUE))
        );
        welcomPnlLayout.setVerticalGroup(
            welcomPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(welcomPnlLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(welcomeLbl)
                .addGap(18, 18, 18)
                .addComponent(whatToDoLbl)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(createNewLbl)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(manualEntryLbl)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(importExisitingLbl)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(welcomPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(importExistingBrowseTxtFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(importExisitingBrowseBtn))
                .addGap(11, 11, 11)
                .addComponent(openExistinLbl)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(welcomPnlLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(openExisitingBrowseTxtFld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(openExistingBrowseBtn))
                .addContainerGap(31, Short.MAX_VALUE))
        );

        helpBtn.setText("Help");
        helpBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                helpBtnActionPerformed(evt);
            }
        });

        nextBtn.setText("Next >>");
        nextBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nextBtnActionPerformed(evt);
            }
        });

        backBtn.setText("<< Back");
        backBtn.setEnabled(false);

        cancelBtn.setText("Cancel");
        cancelBtn.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelBtnActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(stepsPnl, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(welcomPnl, javax.swing.GroupLayout.DEFAULT_SIZE, 326, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(helpBtn)
                        .addGap(112, 112, 112)
                        .addComponent(backBtn)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(nextBtn)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 110, Short.MAX_VALUE)
                        .addComponent(cancelBtn)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(stepsPnl, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(welcomPnl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(helpBtn)
                        .addComponent(nextBtn)
                        .addComponent(backBtn))
                    .addComponent(cancelBtn))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTextField5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField5ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField5ActionPerformed

    private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField4ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField4ActionPerformed

    private void openExistinLblActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openExistinLblActionPerformed
        // TODO add your handling code here:
        manualEntryLbl.setSelected(false);
        importExisitingLbl.setSelected(false);
        importExisitingLbl.setEnabled(false);
        importExisitingBrowseBtn.setEnabled(false);
        importExistingBrowseTxtFld.setEnabled(false);
        manualEntryLbl.setEnabled(false);
        openExisitingBrowseTxtFld.setEnabled(true);
        openExistingBrowseBtn.setEnabled(true);

}//GEN-LAST:event_openExistinLblActionPerformed

    private void createNewLblActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createNewLblActionPerformed
        // TODO add your handling code here:
        openExisitingBrowseTxtFld.setEnabled(false);
        openExistingBrowseBtn.setEnabled(false);
        importExisitingLbl.setEnabled(true);
        manualEntryLbl.setEnabled(true);
        createNewLbl.setEnabled(true);

    }//GEN-LAST:event_createNewLblActionPerformed

    private void importExisitingLblActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_importExisitingLblActionPerformed
        // TODO add your handling code here:
        importExistingBrowseTxtFld.setEnabled(true);
        importExisitingBrowseBtn.setEnabled(true);
        openExisitingBrowseTxtFld.setEnabled(false);
        openExistingBrowseBtn.setEnabled(false);
        openExistinLbl.setSelected(false);
    }//GEN-LAST:event_importExisitingLblActionPerformed

    private void manualEntryLblActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_manualEntryLblActionPerformed
        // TODO add your handling code here:
        importExistingBrowseTxtFld.setEnabled(false);
        importExisitingBrowseBtn.setEnabled(false);
        openExisitingBrowseTxtFld.setEnabled(false);
        openExistingBrowseBtn.setEnabled(false);
        openExistinLbl.setSelected(false);
    }//GEN-LAST:event_manualEntryLblActionPerformed

    private void nextBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nextBtnActionPerformed
        data = new Data();
        DataManager dm = new DataManager(data);

        try {
            if (openExistinLbl.isSelected()) {

                if (filePath == null) {
                    throw new Exception("No File was Selected");
                }
                dm.importData(filePath);
                data = dm.getData();
                mainForm.setProjectPath(filePath);
                mainForm.changeTilte(filePath);
                finishDlg.setPreviousDialog(this);
                finishDlg.setMainForm(mainForm);
                this.setVisible(false);
                finishDlg.setVisible(true);
            }
            else {
                if (importExisitingLbl.isSelected()) {
                    if (filePath == null) {
                        throw new Exception("No File Was Selected");
                    }
                    dm.importData(filePath);
                    data = dm.getData();
                   
                   
                }
                this.setVisible(false);
                saveNfinDlg.setMainForm(mainForm);
                saveNfinDlg.setPreviousDialog(this);
                saveNfinDlg.setVisible(true);
            }
            mainForm.setData(data);


       
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, "An error has occured while processing your request." +
                    "Please make sure you\nhave selected the proper data file.\nDescription:\n"+ex.getMessage(), "WinSIS", JOptionPane.ERROR_MESSAGE);
        }





    }//GEN-LAST:event_nextBtnActionPerformed

    private void openExistingBrowseBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openExistingBrowseBtnActionPerformed
        // TODO add your handling code here:
        FileFilter wssFilter = new FileNameExtensionFilter("WinSIS Project(*.wss)", "wss");
        JFileChooser openProjectDialog = new JFileChooser("./");
        openProjectDialog.addChoosableFileFilter(wssFilter);
        int returnVal = openProjectDialog.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {

            filePath = openProjectDialog.getSelectedFile().getPath();
            if (filePath.toLowerCase().endsWith("wss")) {
                openExisitingBrowseTxtFld.setText(filePath);
            } else {
                filePath = null;
                JOptionPane.showMessageDialog(this, "Unsupported File Extension.\nYour selected file format is not recognized\\supported.", "WinSIS", JOptionPane.ERROR_MESSAGE);
            }


        }

    }//GEN-LAST:event_openExistingBrowseBtnActionPerformed

    private void cancelBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelBtnActionPerformed
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_cancelBtnActionPerformed

    private void importExisitingBrowseBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_importExisitingBrowseBtnActionPerformed
        // TODO add your handling code here:
        FileFilter xlsFilter = new FileNameExtensionFilter("Microsoft Excel 97-2003 Spreadsheet(*.xls)", "xls");
        FileFilter csvFilter = new FileNameExtensionFilter("Comma Seperated Values File(*.csv)", "csv");

        JFileChooser openDataDialog = new JFileChooser("./");
        openDataDialog.addChoosableFileFilter(xlsFilter);
        openDataDialog.addChoosableFileFilter(csvFilter);
              int returnVal = openDataDialog.showOpenDialog(this);
        if (returnVal == JFileChooser.APPROVE_OPTION) {

            filePath = openDataDialog.getSelectedFile().getPath();
            if (filePath.toLowerCase().endsWith("xls") || filePath.toLowerCase().endsWith("csv")) {
                importExistingBrowseTxtFld.setText(filePath);
            } else {
                filePath = null;
                JOptionPane.showMessageDialog(this, "Unsupported File Extension.\nYour selected file format is not recognized\\supported.", "WinSIS", JOptionPane.ERROR_MESSAGE);
            }


        }
    }//GEN-LAST:event_importExisitingBrowseBtnActionPerformed

    private void helpBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpBtnActionPerformed
        try {
            Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL \"" + "help.pdf" + "\"");
        } catch (IOException ex) {
            JOptionPane.showMessageDialog(this, "Unable to find the help file!", "WinSIS", JOptionPane.ERROR_MESSAGE);
        }
    }//GEN-LAST:event_helpBtnActionPerformed
    /**
     * @param args the command line arguments
     */
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton backBtn;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.ButtonGroup buttonGroup2;
    private javax.swing.JButton cancelBtn;
    private javax.swing.JRadioButton createNewLbl;
    private javax.swing.JButton helpBtn;
    private javax.swing.JButton importExisitingBrowseBtn;
    private javax.swing.JRadioButton importExisitingLbl;
    private javax.swing.JTextField importExistingBrowseTxtFld;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JRadioButton manualEntryLbl;
    private javax.swing.JButton nextBtn;
    private javax.swing.JTextField openExisitingBrowseTxtFld;
    private javax.swing.JRadioButton openExistinLbl;
    private javax.swing.JButton openExistingBrowseBtn;
    private javax.swing.JPanel stepsPnl;
    private javax.swing.JPanel welcomPnl;
    private javax.swing.JLabel welcomeLbl;
    private javax.swing.JLabel whatToDoLbl;
    // End of variables declaration//GEN-END:variables
}
TOP

Related Classes of GUI.SelectProjectDlg

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.