// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/controller/GUIManager.java
// public class GUIManager {
//     public static RootPaneContainer mainContainer;
//     public static JPanel curPane;
//     
//     /**
//      * Removes old screen with given pane.
//      * 
//      * @param pane
//      */
//     public static void changeScreen(JPanel pane) {
//         mainContainer.getContentPane().remove(curPane);
//         curPane = pane;
//         mainContainer.getContentPane().add(pane);
//         mainContainer.getContentPane().repaint();
//         GUIHelper.requestFocus(pane);
//     }
//     
//     /**
//      * Searches pane with given name inside current panel. 
//      * If pane is found, replaces old pane with new pane.
//      * 
//      * @param oldPaneName
//      * @param newPane 
//      */
//     public static void replacePane(String oldPaneName, JPanel newPane) {
//         Component[] components = curPane.getComponents();
//         JPanel oldPane = null;
//         for(Component comp: components) {
//             if(comp.getName()!=null&&comp.getName().equals(oldPaneName)&&comp instanceof JPanel) {
//                 oldPane = (JPanel) comp;
//                 break;
//             }
//         }
//         if(oldPane==null) {
//             GUIManager.showErrMsg("Component "+oldPaneName+ " not found");
//         } else {
//             newPane.setLocation(oldPane.getX(),oldPane.getY());
//             newPane.setSize(oldPane.getWidth(),oldPane.getHeight());
//             curPane.remove(oldPane);
//             curPane.add(newPane);
//             curPane.repaint();
//             GUIHelper.requestFocus(newPane);
//         }
//     }
//     
//     /**
//      * Initialize main container as RootPaneContainer(such as japplet or jframe)
//      * @param container
//      */
//     public static void init(RootPaneContainer container) {
//         mainContainer = container;
//         curPane = new CardSelectScreen();
//         mainContainer.getContentPane().add(curPane);
//         ((Container)mainContainer).setVisible(true);
//     }
//     
//     /**
//      * Destroys main container.
//      */
//     public static void destroy() {
//         if(mainContainer instanceof Window) {
//             ((Window)mainContainer).dispose();
//         } else {
//             //do nothing
//         }
//     }
//     
//     /**
//      * Shows error message to user.
//      * @param msg 
//      */
//     public static void showErrMsg(String msg) {
//         JOptionPane.showMessageDialog((Container)mainContainer, msg);
//     }
//     
// }
// 
// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/view/container/MainFrame.java
// public class MainFrame extends javax.swing.JFrame {
// 
//     /**
//      * Creates new form Main
//      */
//     public MainFrame() {
//         initComponents();
//         setBounds(Config.FRAME_STARTING_X, Config.FRAME_STARTING_Y, Config.FRAME_WIDTH, Config.FRAME_HEIGHT);
//     }
// 
//     /**
//      * 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() {
// 
//         setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
//         setTitle("ESignUI-SwingAPP");
//         getContentPane().setLayout(null);
// 
//         pack();
//     }// </editor-fold>//GEN-END:initComponents
// 
//     // Variables declaration - do not modify//GEN-BEGIN:variables
//     // End of variables declaration//GEN-END:variables
// 
// }


import tr.gov.turkiye.esignuidesk.view.container.MainFrame;
import tr.gov.turkiye.esignuidesk.controller.GUIManager;
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package tr.gov.turkiye.esignuidesk.run;


/**
 * Runs application on JFrame.
 * 
 * @author iakpolat
 */
public class StartFrame {

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/controller/GUIManager.java
// public class GUIManager {
//     public static RootPaneContainer mainContainer;
//     public static JPanel curPane;
//     
//     /**
//      * Removes old screen with given pane.
//      * 
//      * @param pane
//      */
//     public static void changeScreen(JPanel pane) {
//         mainContainer.getContentPane().remove(curPane);
//         curPane = pane;
//         mainContainer.getContentPane().add(pane);
//         mainContainer.getContentPane().repaint();
//         GUIHelper.requestFocus(pane);
//     }
//     
//     /**
//      * Searches pane with given name inside current panel. 
//      * If pane is found, replaces old pane with new pane.
//      * 
//      * @param oldPaneName
//      * @param newPane 
//      */
//     public static void replacePane(String oldPaneName, JPanel newPane) {
//         Component[] components = curPane.getComponents();
//         JPanel oldPane = null;
//         for(Component comp: components) {
//             if(comp.getName()!=null&&comp.getName().equals(oldPaneName)&&comp instanceof JPanel) {
//                 oldPane = (JPanel) comp;
//                 break;
//             }
//         }
//         if(oldPane==null) {
//             GUIManager.showErrMsg("Component "+oldPaneName+ " not found");
//         } else {
//             newPane.setLocation(oldPane.getX(),oldPane.getY());
//             newPane.setSize(oldPane.getWidth(),oldPane.getHeight());
//             curPane.remove(oldPane);
//             curPane.add(newPane);
//             curPane.repaint();
//             GUIHelper.requestFocus(newPane);
//         }
//     }
//     
//     /**
//      * Initialize main container as RootPaneContainer(such as japplet or jframe)
//      * @param container
//      */
//     public static void init(RootPaneContainer container) {
//         mainContainer = container;
//         curPane = new CardSelectScreen();
//         mainContainer.getContentPane().add(curPane);
//         ((Container)mainContainer).setVisible(true);
//     }
//     
//     /**
//      * Destroys main container.
//      */
//     public static void destroy() {
//         if(mainContainer instanceof Window) {
//             ((Window)mainContainer).dispose();
//         } else {
//             //do nothing
//         }
//     }
//     
//     /**
//      * Shows error message to user.
//      * @param msg 
//      */
//     public static void showErrMsg(String msg) {
//         JOptionPane.showMessageDialog((Container)mainContainer, msg);
//     }
//     
// }
// 
// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/view/container/MainFrame.java
// public class MainFrame extends javax.swing.JFrame {
// 
//     /**
//      * Creates new form Main
//      */
//     public MainFrame() {
//         initComponents();
//         setBounds(Config.FRAME_STARTING_X, Config.FRAME_STARTING_Y, Config.FRAME_WIDTH, Config.FRAME_HEIGHT);
//     }
// 
//     /**
//      * 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() {
// 
//         setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
//         setTitle("ESignUI-SwingAPP");
//         getContentPane().setLayout(null);
// 
//         pack();
//     }// </editor-fold>//GEN-END:initComponents
// 
//     // Variables declaration - do not modify//GEN-BEGIN:variables
//     // End of variables declaration//GEN-END:variables
// 
// }


// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/run/StartFrame.java
import tr.gov.turkiye.esignuidesk.view.container.MainFrame;
import tr.gov.turkiye.esignuidesk.controller.GUIManager;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package tr.gov.turkiye.esignuidesk.run;


/**
 * Runs application on JFrame.
 * 
 * @author iakpolat
 */
public class StartFrame {

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);