/** * 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() { java.awt.GridBagConstraints gridBagConstraints; saveTypeLabel = new javax.swing.JLabel(); saveTypeCombo = new javax.swing.JComboBox(); overviewTypeLabel = new javax.swing.JLabel(); overviewTypeCombo = new javax.swing.JComboBox(); cummulatedLabel = new javax.swing.JLabel(); cummulatedCheck = new javax.swing.JCheckBox(); overviewPanel = new javax.swing.JPanel(); tableScroll = new javax.swing.JScrollPane(); table = new javax.swing.JTable(); triangleWidget = new org.jreserve.gui.trianglewidget.TriangleWidgetPanel(); pBar = new javax.swing.JProgressBar(); setLayout(new java.awt.GridBagLayout()); org.openide.awt.Mnemonics.setLocalizedText( saveTypeLabel, org.openide.util.NbBundle.getMessage( ImportDataWizardVisualPanelLast.class, "ImportDataWizardVisualPanelLast.saveTypeLabel.text")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING; gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 5); add(saveTypeLabel, gridBagConstraints); saveTypeCombo.setModel(new DefaultComboBoxModel(SaveType.values())); saveTypeCombo.setSelectedItem(ImportSettings.getSaveType()); saveTypeCombo.setRenderer(WidgetUtils.displayableListRenderer()); saveTypeCombo.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveTypeComboActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING; gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 5); add(saveTypeCombo, gridBagConstraints); org.openide.awt.Mnemonics.setLocalizedText( overviewTypeLabel, org.openide.util.NbBundle.getMessage( ImportDataWizardVisualPanelLast.class, "ImportDataWizardVisualPanelLast.overviewTypeLabel.text")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING; gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 5); add(overviewTypeLabel, gridBagConstraints); overviewTypeCombo.setModel(new DefaultComboBoxModel(OverviewType.values())); overviewTypeCombo.setSelectedItem(OverviewType.TRIANGLE); overviewTypeCombo.setRenderer(WidgetUtils.displayableListRenderer()); overviewTypeCombo.addActionListener( new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { overviewTypeComboActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING; gridBagConstraints.insets = new java.awt.Insets(0, 0, 10, 5); add(overviewTypeCombo, gridBagConstraints); org.openide.awt.Mnemonics.setLocalizedText( cummulatedLabel, org.openide.util.NbBundle.getMessage( ImportDataWizardVisualPanelLast.class, "ImportDataWizardVisualPanelLast.cummulatedLabel.text")); // NOI18N gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING; gridBagConstraints.insets = new java.awt.Insets(0, 0, 30, 5); add(cummulatedLabel, gridBagConstraints); org.openide.awt.Mnemonics.setLocalizedText(cummulatedCheck, null); cummulatedCheck.setSelected(ImportSettings.isImportCummulated()); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_TRAILING; gridBagConstraints.insets = new java.awt.Insets(0, 0, 30, 5); add(cummulatedCheck, gridBagConstraints); overviewPanel.setPreferredSize(new java.awt.Dimension(450, 250)); overviewPanel.setLayout(new java.awt.CardLayout()); table.setModel(tableModel); tableRenderer = new TableRenderer(); table.setDefaultRenderer(MonthDate.class, tableRenderer); table.setDefaultRenderer(Double.class, tableRenderer); tableScroll.setViewportView(table); overviewPanel.add(tableScroll, "table"); triangleWidget.setCummulatedControlVisible(false); overviewPanel.add(triangleWidget, "triangle"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(overviewPanel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(10, 0, 0, 0); add(pBar, gridBagConstraints); } // </editor-fold>//GEN-END:initComponents