// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/config/Config.java
// public class Config {
//     //Main frame configuration
//     public static final int FRAME_WIDTH = 530;
//     public static final int FRAME_HEIGHT = 275;
//     public static final int FRAME_STARTING_X = 30;
//     public static final int FRAME_STARTING_Y = 30;
//     
//     //Main panel configuration
//     public static final int DEF_PANEL_WIDTH = FRAME_WIDTH;
//     public static final int DEF_PANEL_HEIGHT = FRAME_HEIGHT-25;
//     public static final int DEF_PANEL_STARTING_X = 0;
//     public static final int DEF_PANEL_STARTING_Y = 0;
//     
//     public static final Locale locale = new Locale("tr","TR");
// //    public static final Locale locale = new Locale("en","EN");    
//     
//     //Screen ids are used on logic manager to interpret where requests are coming from.
//     public static final int CARD_SELECT_SCREEN_ID = 1;
//     public static final int CERT_SHOW_SCREEN_ID = 2;
//     public static final int PIN_PANE_ID = 3;
//     public static final int DONE_PANE_ID = 4;
//     
//     public static final int DEBUG_TYPE = 1; //0=do nothing,1=print stack trace to console,2=print localized message to console, 3=send to server etc.
//     
//     public static final String certInfoPaneName = "certInfoPane";
//     public static final String certPaneName = "certPane";
//     public static final String pinPaneName = "pinPane";
//     
//     public static final Point pinBtnStartPoint = new Point(20, 60);
//     public static final Dimension numberBtnSize = new Dimension(40,40);
//     
//     public static final String defaultFileName = "signed_document_";
//     
//     public static final String dateSFormat = "dd.MM.yyyy";
//     public static final String timeSFormat = "dd-MM-yyyy_hh_mm_ss";
// }
// 
// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/view/container/MainApplet.java
// public class MainApplet extends JApplet {
// 
//     private JPanel curPane;
//     
//     /**
//      * Initialization method that will be called after the applet is loaded into
//      * the browser.
//      */
//     @Override
//     public void init() {
//         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);
//         } catch (InstantiationException ex) {
//             java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//         } catch (IllegalAccessException ex) {
//             java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//         } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//             java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//         }
//         
//         java.awt.EventQueue.invokeLater(new Runnable() {
//             @Override
//             public void run() {
//                 setLayout(null);
//                 setBounds(0,0,530,250);
//                 GUIManager.init(MainApplet.this);
//                 setVisible(true);
//                 
//             }
//         });
//         // TODO start asynchronous download of heavy resources
//         
//     }
// 
//     // TODO overwrite start(), stop() and destroy() methods
// 
//     public JPanel getCurPane() {
//         return curPane;
//     }
// 
//     public void setCurPane(JPanel curPane) {
//         this.curPane = curPane;
//     }
//     
//     public void dispose() {
//         //do nothing
//     }
// }


import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import tr.gov.turkiye.esignuidesk.config.Config;
import tr.gov.turkiye.esignuidesk.view.container.MainApplet;
/*
 * 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;


/**
 *
 * This class is used to test whether applet could start successfully or not.
 * 
 * @author iakpolat
 */
public class StartApplet {
    
    private static MainApplet applet;
    
    public static void init(MainApplet app) {
        applet = app;
    }
    
    public static void run() {
        JFrame frame = new JFrame();
// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/config/Config.java
// public class Config {
//     //Main frame configuration
//     public static final int FRAME_WIDTH = 530;
//     public static final int FRAME_HEIGHT = 275;
//     public static final int FRAME_STARTING_X = 30;
//     public static final int FRAME_STARTING_Y = 30;
//     
//     //Main panel configuration
//     public static final int DEF_PANEL_WIDTH = FRAME_WIDTH;
//     public static final int DEF_PANEL_HEIGHT = FRAME_HEIGHT-25;
//     public static final int DEF_PANEL_STARTING_X = 0;
//     public static final int DEF_PANEL_STARTING_Y = 0;
//     
//     public static final Locale locale = new Locale("tr","TR");
// //    public static final Locale locale = new Locale("en","EN");    
//     
//     //Screen ids are used on logic manager to interpret where requests are coming from.
//     public static final int CARD_SELECT_SCREEN_ID = 1;
//     public static final int CERT_SHOW_SCREEN_ID = 2;
//     public static final int PIN_PANE_ID = 3;
//     public static final int DONE_PANE_ID = 4;
//     
//     public static final int DEBUG_TYPE = 1; //0=do nothing,1=print stack trace to console,2=print localized message to console, 3=send to server etc.
//     
//     public static final String certInfoPaneName = "certInfoPane";
//     public static final String certPaneName = "certPane";
//     public static final String pinPaneName = "pinPane";
//     
//     public static final Point pinBtnStartPoint = new Point(20, 60);
//     public static final Dimension numberBtnSize = new Dimension(40,40);
//     
//     public static final String defaultFileName = "signed_document_";
//     
//     public static final String dateSFormat = "dd.MM.yyyy";
//     public static final String timeSFormat = "dd-MM-yyyy_hh_mm_ss";
// }
// 
// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/view/container/MainApplet.java
// public class MainApplet extends JApplet {
// 
//     private JPanel curPane;
//     
//     /**
//      * Initialization method that will be called after the applet is loaded into
//      * the browser.
//      */
//     @Override
//     public void init() {
//         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);
//         } catch (InstantiationException ex) {
//             java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//         } catch (IllegalAccessException ex) {
//             java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//         } catch (javax.swing.UnsupportedLookAndFeelException ex) {
//             java.util.logging.Logger.getLogger(MainFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
//         }
//         
//         java.awt.EventQueue.invokeLater(new Runnable() {
//             @Override
//             public void run() {
//                 setLayout(null);
//                 setBounds(0,0,530,250);
//                 GUIManager.init(MainApplet.this);
//                 setVisible(true);
//                 
//             }
//         });
//         // TODO start asynchronous download of heavy resources
//         
//     }
// 
//     // TODO overwrite start(), stop() and destroy() methods
// 
//     public JPanel getCurPane() {
//         return curPane;
//     }
// 
//     public void setCurPane(JPanel curPane) {
//         this.curPane = curPane;
//     }
//     
//     public void dispose() {
//         //do nothing
//     }
// }


// Path: ESignUI/src/main/java/tr/gov/turkiye/esignuidesk/run/StartApplet.java
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JFrame;
import tr.gov.turkiye.esignuidesk.config.Config;
import tr.gov.turkiye.esignuidesk.view.container.MainApplet;

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


/**
 *
 * This class is used to test whether applet could start successfully or not.
 * 
 * @author iakpolat
 */
public class StartApplet {
    
    private static MainApplet applet;
    
    public static void init(MainApplet app) {
        applet = app;
    }
    
    public static void run() {
        JFrame frame = new JFrame();
        frame.setSize(Config.FRAME_WIDTH, Config.FRAME_HEIGHT);