OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 142 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 142 Rev 156
Line 55... Line 55...
55
import javax.swing.SwingConstants;
55
import javax.swing.SwingConstants;
56
import javax.swing.SwingUtilities;
56
import javax.swing.SwingUtilities;
57
 
57
 
58
public class ConfigCaissePanel extends JPanel {
58
public class ConfigCaissePanel extends JPanel {
59
 
59
 
60
    private final POSConfiguration configuration = POSConfiguration.getInstance();
60
    private final POSConfiguration configuration;
61
    private int userId;
61
    private int userId;
62
    private int societeId;
62
    private int societeId;
63
    private int caisseId;
63
    private int caisseId;
64
    private final ServerFinderPanel serverFinderPanel;
64
    private final ServerFinderPanel serverFinderPanel;
65
    private final JComboBox comboSociete;
65
    private final JComboBox comboSociete;
Line 78... Line 78...
78
    private JTextField textLCDLine1;
78
    private JTextField textLCDLine1;
79
    private JTextField textLCDLine2;
79
    private JTextField textLCDLine2;
80
 
80
 
81
    public ConfigCaissePanel(final ServerFinderPanel serverFinderPanel) {
81
    public ConfigCaissePanel(final ServerFinderPanel serverFinderPanel) {
82
        this.serverFinderPanel = serverFinderPanel;
82
        this.serverFinderPanel = serverFinderPanel;
-
 
83
        try {
-
 
84
            this.configuration = POSConfiguration.setInstance();
-
 
85
        } catch (Exception e) {
-
 
86
            throw new IllegalStateException("Couldn't initialise POSConfiguration", e);
-
 
87
        }
83
 
88
 
84
        setOpaque(false);
89
        setOpaque(false);
85
 
90
 
86
        setLayout(new GridBagLayout());
91
        setLayout(new GridBagLayout());
87
        final GridBagConstraints c = new DefaultGridBagConstraints();
92
        final GridBagConstraints c = new DefaultGridBagConstraints();
Line 578... Line 583...
578
 
583
 
579
                        } catch (final Exception e) {
584
                        } catch (final Exception e) {
580
                            e.printStackTrace();
585
                            e.printStackTrace();
581
                        } finally {
586
                        } finally {
582
                            server.destroy();
587
                            server.destroy();
-
 
588
                            server.tearDownLogging(true);
583
                        }
589
                        }
584
                    }
590
                    }
585
                });
591
                });
586
                t.setDaemon(true);
592
                t.setDaemon(true);
587
                t.start();
593
                t.start();