Example usage for java.awt GridBagConstraints SOUTHWEST

List of usage examples for java.awt GridBagConstraints SOUTHWEST

Introduction

In this page you can find the example usage for java.awt GridBagConstraints SOUTHWEST.

Prototype

int SOUTHWEST

To view the source code for java.awt GridBagConstraints SOUTHWEST.

Click Source Link

Document

Put the component at the bottom-left corner of its display area.

Usage

From source file:net.sf.jabref.gui.FindUnlinkedFilesDialog.java

/**
 * Initializes the layout for the visible components in this menu. A
 * {@link GridBagLayout} is used.//from   w w w .jav  a  2s.  com
 */
private void initLayout() {

    GridBagLayout gbl = new GridBagLayout();

    panelDirectory.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            Localization.lang("Select directory")));
    panelFiles.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            Localization.lang("Select files")));
    panelEntryTypesSelection.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(),
            Localization.lang("BibTeX entry creation")));

    Insets basicInsets = new Insets(6, 6, 6, 6);
    Insets smallInsets = new Insets(3, 2, 3, 1);
    Insets noInsets = new Insets(0, 0, 0, 0);

    //       x, y, w, h, wx,wy,ix,iy
    FindUnlinkedFilesDialog.addComponent(gbl, panelSearchArea, buttonScan, GridBagConstraints.HORIZONTAL,
            GridBagConstraints.EAST, noInsets, 0, 1, 1, 1, 1, 1, 40, 10);
    FindUnlinkedFilesDialog.addComponent(gbl, panelSearchArea, labelSearchingDirectoryInfo,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.EAST, noInsets, 0, 2, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelSearchArea, progressBarSearching,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.EAST, noInsets, 0, 3, 1, 1, 0, 0, 0, 0);

    FindUnlinkedFilesDialog.addComponent(gbl, panelDirectory, labelDirectoryDescription, null,
            GridBagConstraints.WEST, new Insets(6, 6, 0, 6), 0, 0, 3, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelDirectory, textfieldDirectoryPath,
            GridBagConstraints.HORIZONTAL, null, basicInsets, 0, 1, 2, 1, 1, 1, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelDirectory, buttonBrowse, GridBagConstraints.HORIZONTAL,
            GridBagConstraints.EAST, basicInsets, 2, 1, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelDirectory, labelFileTypesDescription,
            GridBagConstraints.NONE, GridBagConstraints.WEST, new Insets(18, 6, 18, 3), 0, 3, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelDirectory, comboBoxFileTypeSelection,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST, new Insets(18, 3, 18, 6), 1, 3, 1, 1, 1, 0,
            0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelDirectory, panelSearchArea, GridBagConstraints.HORIZONTAL,
            GridBagConstraints.EAST, new Insets(18, 6, 18, 6), 2, 3, 1, 1, 0, 0, 0, 0);

    FindUnlinkedFilesDialog.addComponent(gbl, panelFiles, labelFilesDescription, GridBagConstraints.HORIZONTAL,
            GridBagConstraints.WEST, new Insets(6, 6, 0, 6), 0, 0, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelFiles, scrollpaneTree, GridBagConstraints.BOTH,
            GridBagConstraints.CENTER, basicInsets, 0, 1, 1, 1, 1, 1, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelFiles, panelOptions, GridBagConstraints.NONE,
            GridBagConstraints.NORTHEAST, basicInsets, 1, 1, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelOptions, buttonOptionSelectAll,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.NORTH, noInsets, 0, 0, 1, 1, 1, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelOptions, buttonOptionUnselectAll,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.NORTH, noInsets, 0, 1, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelOptions, buttonOptionExpandAll,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.NORTH, new Insets(6, 0, 0, 0), 0, 2, 1, 1, 0, 0,
            0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelOptions, buttonOptionCollapseAll,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.NORTH, noInsets, 0, 3, 1, 1, 0, 0, 0, 0);

    FindUnlinkedFilesDialog.addComponent(gbl, panelEntryTypesSelection, labelEntryTypeDescription,
            GridBagConstraints.NONE, GridBagConstraints.WEST, basicInsets, 0, 0, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelEntryTypesSelection, comboBoxEntryTypeSelection,
            GridBagConstraints.NONE, GridBagConstraints.WEST, basicInsets, 1, 0, 1, 1, 1, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelEntryTypesSelection, checkboxCreateKeywords,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.WEST, basicInsets, 0, 1, 2, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelImportArea, labelImportingInfo,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.CENTER, new Insets(6, 6, 0, 6), 0, 1, 1, 1, 1, 0,
            0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelImportArea, progressBarImporting,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.CENTER, new Insets(0, 6, 6, 6), 0, 2, 1, 1, 1, 0,
            0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, panelButtons, panelImportArea, GridBagConstraints.NONE,
            GridBagConstraints.EAST, smallInsets, 1, 0, 1, 1, 0, 0, 0, 0);

    FindUnlinkedFilesDialog.addComponent(gbl, getContentPane(), panelDirectory, GridBagConstraints.HORIZONTAL,
            GridBagConstraints.CENTER, basicInsets, 0, 0, 1, 1, 0, 0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, getContentPane(), panelFiles, GridBagConstraints.BOTH,
            GridBagConstraints.NORTHWEST, new Insets(12, 6, 2, 2), 0, 1, 1, 1, 1, 1, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, getContentPane(), panelEntryTypesSelection,
            GridBagConstraints.HORIZONTAL, GridBagConstraints.SOUTHWEST, new Insets(12, 6, 2, 2), 0, 2, 1, 1, 0,
            0, 0, 0);
    FindUnlinkedFilesDialog.addComponent(gbl, getContentPane(), panelButtons, GridBagConstraints.HORIZONTAL,
            GridBagConstraints.CENTER, new Insets(10, 6, 10, 6), 0, 3, 1, 1, 0, 0, 0, 0);

    ButtonBarBuilder bb = new ButtonBarBuilder();
    bb.addGlue();
    bb.addButton(buttonApply);
    bb.addButton(buttonClose);
    bb.addGlue();

    bb.getPanel().setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    panelImportArea.add(bb.getPanel(), GridBagConstraints.NONE);
    pack();

}

From source file:v800_trainer.JCicloTronic.java

/** This method is called from within the constructor to
 * initialize the form.//from w  w w  .  ja va2s .c om
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the FormEditor.
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    buttonGroup_Karte = new javax.swing.ButtonGroup();
    Hauptfenster = new javax.swing.JTabbedPane();
    Datenliste_Panel = new javax.swing.JPanel();
    Datenliste_scroll_Panel = new javax.swing.JScrollPane();
    Datentabelle = new javax.swing.JTable();
    Datenliste_Jahr = new javax.swing.JComboBox();
    Datenliste_Monat = new javax.swing.JComboBox();
    jLabel11 = new javax.swing.JLabel();
    jLabel51 = new javax.swing.JLabel();
    Datenliste_Zeitabschnitt = new javax.swing.JComboBox();
    jLabel65 = new javax.swing.JLabel();
    jLabel66 = new javax.swing.JLabel();
    Datenliste_TourTyp = new javax.swing.JComboBox();
    jLabel68 = new javax.swing.JLabel();
    jLabel69_Selektiert = new javax.swing.JLabel();
    Datenliste_search = new javax.swing.JTextField();
    Datenliste_searchButton = new javax.swing.JButton();
    jLabel_search = new javax.swing.JLabel();
    Info_Panel = new javax.swing.JPanel();
    Auswahl_Info = new javax.swing.JComboBox();
    Info_Titel = new javax.swing.JTextField();
    Info_Vorname = new javax.swing.JTextField();
    Info_Name = new javax.swing.JTextField();
    Info_GebTag = new javax.swing.JTextField();
    Info_Gewicht = new javax.swing.JTextField();
    Info_Verein = new javax.swing.JTextField();
    Info_Material = new javax.swing.JTextField();
    Info_Materialgewicht = new javax.swing.JTextField();
    Info_Startort = new javax.swing.JTextField();
    Info_Zielort = new javax.swing.JTextField();
    jLabel24Uhrzeit = new javax.swing.JLabel();
    jLabel24 = new javax.swing.JLabel();
    jLabel52 = new javax.swing.JLabel();
    jLabel53 = new javax.swing.JLabel();
    jLabel54 = new javax.swing.JLabel();
    jLabel55 = new javax.swing.JLabel();
    jLabel56 = new javax.swing.JLabel();
    jLabel57 = new javax.swing.JLabel();
    jLabel58 = new javax.swing.JLabel();
    jLabel59 = new javax.swing.JLabel();
    jLabel60 = new javax.swing.JLabel();
    jLabel61 = new javax.swing.JLabel();
    Info_Button_kopieren = new javax.swing.JButton();
    Info_Button_einfgen = new javax.swing.JButton();
    jScrollPane2 = new javax.swing.JScrollPane();
    Info_Notiz = new javax.swing.JTextArea();
    Info_Button_speichern = new javax.swing.JButton();
    jLabel63 = new javax.swing.JLabel();
    jLabel64 = new javax.swing.JLabel();
    jLabel65Typ = new javax.swing.JLabel();
    jLabel69 = new javax.swing.JLabel();
    Info_Button_Suche_TrackLog = new javax.swing.JButton();
    Info_Track_Log = new javax.swing.JTextField();
    Statistik_Panel = new javax.swing.JPanel();
    Auswahl_Statistik = new javax.swing.JComboBox();
    jPanel2 = new javax.swing.JPanel();
    Statistik_Hhe = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    Statistik_Minimale_Hhe = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    Statistik_Maximale_Hhe = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    Statistik_Summe_Hm_Steigung = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    Statistik_Summe_Hm_Geflle = new javax.swing.JLabel();
    jLabel17 = new javax.swing.JLabel();
    Statistik_HM_pro_km = new javax.swing.JLabel();
    Statistik_Geschwindigkeit = new javax.swing.JPanel();
    jLabel5 = new javax.swing.JLabel();
    Statistik_Max_Geschw = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    Statistik_av_Geschw = new javax.swing.JLabel();
    Statistik_Herzfrequenz = new javax.swing.JPanel();
    jLabel7 = new javax.swing.JLabel();
    Statistik_max_HF = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    Statistik_av_HF = new javax.swing.JLabel();
    Statistik_Steigung_m = new javax.swing.JPanel();
    jLabel9 = new javax.swing.JLabel();
    Statistik_max_Steigung_m = new javax.swing.JLabel();
    jLabel10 = new javax.swing.JLabel();
    Statistik_av_Steigung_m = new javax.swing.JLabel();
    Statistik_Geflle_m = new javax.swing.JPanel();
    jLabel12 = new javax.swing.JLabel();
    Statistik_max_Geflle_m = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    Statistik_av_Geflle_m = new javax.swing.JLabel();
    Statistik_Temperatur = new javax.swing.JPanel();
    jLabel14 = new javax.swing.JLabel();
    Statistik_min_Temp = new javax.swing.JLabel();
    jLabel15 = new javax.swing.JLabel();
    Statistik_max_Temp = new javax.swing.JLabel();
    jLabel16 = new javax.swing.JLabel();
    Statistik_av_Temp = new javax.swing.JLabel();
    Statistik_Cadence = new javax.swing.JPanel();
    jLabel18 = new javax.swing.JLabel();
    Statistik_max_Cadence = new javax.swing.JLabel();
    jLabel19 = new javax.swing.JLabel();
    Statistik_av_Cadence = new javax.swing.JLabel();
    Statistik_Steigung_p = new javax.swing.JPanel();
    jLabel20 = new javax.swing.JLabel();
    Statistik_max_Steigung_p = new javax.swing.JLabel();
    jLabel21 = new javax.swing.JLabel();
    Statistik_av_Steigung_p = new javax.swing.JLabel();
    Statistik_Geflle_p = new javax.swing.JPanel();
    jLabel22 = new javax.swing.JLabel();
    Statistik_max_Geflle_p = new javax.swing.JLabel();
    jLabel23 = new javax.swing.JLabel();
    Statistik_av_Geflle_p = new javax.swing.JLabel();
    Statistik_Zeit = new javax.swing.JPanel();
    jLabel47 = new javax.swing.JLabel();
    Statistik_Zeit_absolut = new javax.swing.JLabel();
    jLabel48 = new javax.swing.JLabel();
    Statistik_Zeit_aktiv = new javax.swing.JLabel();
    jPanel5 = new javax.swing.JPanel();
    jLabel25 = new javax.swing.JLabel();
    Statistik_Teilstrecke = new javax.swing.JLabel();
    Statistik_Schrittlnge = new javax.swing.JPanel();
    jLabel26 = new javax.swing.JLabel();
    Statistik_max_Schrittlnge = new javax.swing.JLabel();
    jLabel28 = new javax.swing.JLabel();
    Statistik_av_Schrittlnge = new javax.swing.JLabel();
    Statistik_Training = new javax.swing.JPanel();
    jLabel29 = new javax.swing.JLabel();
    Statistik_Belastung = new javax.swing.JLabel();
    jLabel30 = new javax.swing.JLabel();
    Statistik_Erholungszeit = new javax.swing.JLabel();
    jLabel35 = new javax.swing.JLabel();
    Statistik_Lauf_Index = new javax.swing.JLabel();
    Statistik_Kalorien = new javax.swing.JPanel();
    jLabel31 = new javax.swing.JLabel();
    Statistik_Kalorien_absolut = new javax.swing.JLabel();
    jLabel34 = new javax.swing.JLabel();
    Statistik_Kalorien_h = new javax.swing.JLabel();
    jLabel32 = new javax.swing.JLabel();
    Statistik_Fett = new javax.swing.JLabel();
    jLabel33 = new javax.swing.JLabel();
    Statistik_Protein = new javax.swing.JLabel();
    jPanel3 = new javax.swing.JPanel();
    jPanel4 = new javax.swing.JPanel();
    Statistik_Titel = new javax.swing.JLabel();
    Graphik_Panel = new javax.swing.JPanel();
    Auswahl_Graphik = new javax.swing.JComboBox();
    Graphik_Sub_Panel = new javax.swing.JPanel();
    Graphik_check_Geschwindigkeit = new javax.swing.JCheckBox();
    Graphik_check_Hhe = new javax.swing.JCheckBox();
    Graphik_check_HF = new javax.swing.JCheckBox();
    Graphik_check_Temp = new javax.swing.JCheckBox();
    Graphik_check_Steigung_p = new javax.swing.JCheckBox();
    Graphik_check_Steigung_m = new javax.swing.JCheckBox();
    Graphik_check_Cadence = new javax.swing.JCheckBox();
    Graphik_Radio_Strecke = new javax.swing.JRadioButton();
    Graphik_Radio_Zeit = new javax.swing.JRadioButton();
    Graphik_check_Abstand = new javax.swing.JCheckBox();
    Graphik_check_av_Geschw = new javax.swing.JCheckBox();
    Graphik_check_Schrittlnge = new javax.swing.JCheckBox();
    Histogramm_Panel = new javax.swing.JPanel();
    Auswahl_Histogramm = new javax.swing.JComboBox();
    Summenhistogramm_Check = new javax.swing.JCheckBox();
    jPanel1 = new javax.swing.JPanel();
    jPanel18_HistoSP = new javax.swing.JPanel();
    jPanel17_HistoHM = new javax.swing.JPanel();
    jPanel16_HistoHF = new javax.swing.JPanel();
    jPanel19_HistoCd = new javax.swing.JPanel();
    jLabel26_Histotitel = new javax.swing.JLabel();
    Map_Panel = new javax.swing.JPanel();
    Auswahl_Map = new javax.swing.JComboBox();
    LoadGoogleEarth = new javax.swing.JButton();
    Kein_kmz_text = new javax.swing.JLabel();
    Map_internal_Panel = new javax.swing.JPanel();
    jLabel_map_streckenlnge = new javax.swing.JLabel();
    jLabel27 = new javax.swing.JLabel();
    Map_Type = new javax.swing.JComboBox<>();
    Jahresuebersicht_Panel = new javax.swing.JPanel();
    Auswahl_bersicht = new javax.swing.JComboBox();
    JahrVergleich = new javax.swing.JComboBox();
    jLabel67 = new javax.swing.JLabel();
    jLabel70 = new javax.swing.JLabel();
    jRadioButton_jahresverlauf = new javax.swing.JRadioButton();
    jRadioButton_monatsbersicht = new javax.swing.JRadioButton();
    jPanel17bersichtchart = new javax.swing.JPanel();
    jMenuHaupt = new javax.swing.JMenuBar();
    jMenuDatei = new javax.swing.JMenu();
    jMenuOpen = new javax.swing.JMenuItem();
    jMenuOpenall = new javax.swing.JMenuItem();
    jSeparator1 = new javax.swing.JSeparator();
    jMenuLschen = new javax.swing.JMenuItem();
    jMenuExit = new javax.swing.JMenuItem();
    jMenu_V800_Laden = new javax.swing.JMenu();
    jMenuTourEditor = new javax.swing.JMenu();
    jMenuEinstellungen = new javax.swing.JMenu();
    jMenuHilfe = new javax.swing.JMenu();

    setTitle("HWCyclingData");
    setPreferredSize(new java.awt.Dimension(800, 600));
    addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentResized(java.awt.event.ComponentEvent evt) {
            formComponentResized(evt);
        }
    });
    addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent evt) {
            exitForm(evt);
        }
    });
    java.awt.GridBagLayout layout = new java.awt.GridBagLayout();
    layout.columnWidths = new int[] { 0 };
    layout.rowHeights = new int[] { 0 };
    getContentPane().setLayout(layout);

    Hauptfenster.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
    Hauptfenster.setAlignmentX(0.0F);
    Hauptfenster.setAlignmentY(0.0F);
    Hauptfenster.setAutoscrolls(true);
    Hauptfenster.setPreferredSize(new java.awt.Dimension(10, 10));

    java.awt.GridBagLayout Datenliste_PanelLayout = new java.awt.GridBagLayout();
    Datenliste_PanelLayout.columnWidths = new int[] { 0, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0, 9, 0 };
    Datenliste_PanelLayout.rowHeights = new int[] { 0, 5, 0, 5, 0 };
    Datenliste_Panel.setLayout(Datenliste_PanelLayout);

    Datenliste_scroll_Panel.setAutoscrolls(true);

    Datentabelle.setAutoCreateColumnsFromModel(false);
    Datentabelle.setFont(Datentabelle.getFont());
    Datentabelle.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_LAST_COLUMN);
    Datentabelle.setRowHeight(25);
    //ChangeModel();
    Datentabelle.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
        public void mouseDragged(java.awt.event.MouseEvent evt) {
            DatentabelleMouseDragged(evt);
        }
    });
    Datentabelle.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            DatentabelleMouseClicked(evt);
        }
    });
    Datenliste_scroll_Panel.setViewportView(Datentabelle);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 19;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.ipady = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    Datenliste_Panel.add(Datenliste_scroll_Panel, gridBagConstraints);

    Datenliste_Jahr.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Datenliste_JahrActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(Datenliste_Jahr, gridBagConstraints);

    Datenliste_Monat.setEnabled(false);
    InitComboMonat();
    Datenliste_Monat.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Datenliste_MonatActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 12;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(Datenliste_Monat, gridBagConstraints);

    jLabel11.setText("Jahr whlen");
    jLabel11.setToolTipText("Selektier alle Daten des entsprechenden Jahres");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(jLabel11, gridBagConstraints);

    jLabel51.setText("Monat whlen");
    jLabel51.setToolTipText("Selektiert alle Daten des entsprechenden Monats");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 12;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(jLabel51, gridBagConstraints);

    Datenliste_Zeitabschnitt.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Datenliste_ZeitabschnittActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(Datenliste_Zeitabschnitt, gridBagConstraints);

    jLabel65.setText("Zeitraum whlen");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(jLabel65, gridBagConstraints);

    jLabel66.setText("Tour-Typ");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(jLabel66, gridBagConstraints);

    Datenliste_TourTyp.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Datenliste_TourTypActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(Datenliste_TourTyp, gridBagConstraints);

    jLabel68.setText("Selektierte Daten / von");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 14;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(jLabel68, gridBagConstraints);

    jLabel69_Selektiert.setText("'                                                 '");
    jLabel69_Selektiert.setMaximumSize(new java.awt.Dimension(300, 50));
    jLabel69_Selektiert.setMinimumSize(new java.awt.Dimension(300, 50));
    jLabel69_Selektiert.setVerticalTextPosition(javax.swing.SwingConstants.TOP);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 14;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    Datenliste_Panel.add(jLabel69_Selektiert, gridBagConstraints);

    Datenliste_search.setToolTipText("~ Vorstellen um zu Deselektieren");
    Datenliste_search.setMaximumSize(new java.awt.Dimension(200, 23));
    Datenliste_search.setMinimumSize(new java.awt.Dimension(200, 23));
    Datenliste_search.setPreferredSize(new java.awt.Dimension(200, 23));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 16;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(Datenliste_search, gridBagConstraints);

    Datenliste_searchButton.setText("Suchen");
    Datenliste_searchButton.setMaximumSize(new java.awt.Dimension(200, 23));
    Datenliste_searchButton.setMinimumSize(new java.awt.Dimension(200, 23));
    Datenliste_searchButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Datenliste_searchButtonActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 18;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(Datenliste_searchButton, gridBagConstraints);

    jLabel_search.setText("Eintrag im Titel suchen");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 16;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Datenliste_Panel.add(jLabel_search, gridBagConstraints);

    Hauptfenster.addTab("Datenliste", null, Datenliste_Panel, "");

    Info_Panel.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            Info_PanelComponentShown(evt);
        }
    });
    java.awt.GridBagLayout Info_PanelLayout = new java.awt.GridBagLayout();
    Info_PanelLayout.columnWidths = new int[] { 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 };
    Info_PanelLayout.rowHeights = new int[] { 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5,
            0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 };
    Info_Panel.setLayout(Info_PanelLayout);

    Auswahl_Info.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Auswahl_InfoActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Info_Panel.add(Auswahl_Info, gridBagConstraints);

    Info_Titel.setText("jTextField1");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.gridwidth = 19;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Titel, gridBagConstraints);

    Info_Vorname.setText("jTextField4");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Vorname, gridBagConstraints);

    Info_Name.setText("jTextField5");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Name, gridBagConstraints);

    Info_GebTag.setText("jTextField6");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 14;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_GebTag, gridBagConstraints);

    Info_Gewicht.setText("jTextField7");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 14;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Gewicht, gridBagConstraints);

    Info_Verein.setText("jTextField8");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 18;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Verein, gridBagConstraints);

    Info_Material.setText("jTextField10");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 22;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Material, gridBagConstraints);

    Info_Materialgewicht.setText("jTextField9");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 22;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Materialgewicht, gridBagConstraints);

    Info_Startort.setText("jTextField2");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 26;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Startort, gridBagConstraints);

    Info_Zielort.setText("jTextField3");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 26;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Zielort, gridBagConstraints);

    jLabel24Uhrzeit.setText("jLabel24");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel24Uhrzeit, gridBagConstraints);

    jLabel24.setText("Titel");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel24, gridBagConstraints);

    jLabel52.setText("Vorname");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel52, gridBagConstraints);

    jLabel53.setText("Name");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel53, gridBagConstraints);

    jLabel54.setText("Geburtsdatum");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 12;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel54, gridBagConstraints);

    jLabel55.setText("Gewicht");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 12;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel55, gridBagConstraints);

    jLabel56.setText("Verein / Mitfahrer");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 16;
    gridBagConstraints.gridwidth = 17;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel56, gridBagConstraints);

    jLabel57.setText("Material");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 20;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel57, gridBagConstraints);

    jLabel58.setText("Materialgewicht");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 20;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel58, gridBagConstraints);

    jLabel59.setText("Startort");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 24;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel59, gridBagConstraints);

    jLabel60.setText("Zielort");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 24;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel60, gridBagConstraints);

    jLabel61.setText("Notiz");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 34;
    gridBagConstraints.gridwidth = 9;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel61, gridBagConstraints);

    Info_Button_kopieren.setText("Kopieren");
    Info_Button_kopieren.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Info_Button_kopierenActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 18;
    gridBagConstraints.gridy = 18;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Button_kopieren, gridBagConstraints);

    Info_Button_einfgen.setText("Einfgen");
    Info_Button_einfgen.setEnabled(false);
    Info_Button_einfgen.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Info_Button_einfgenActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 18;
    gridBagConstraints.gridy = 22;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Button_einfgen, gridBagConstraints);

    Info_Notiz.setLineWrap(true);
    jScrollPane2.setViewportView(Info_Notiz);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 36;
    gridBagConstraints.gridwidth = 19;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    Info_Panel.add(jScrollPane2, gridBagConstraints);

    Info_Button_speichern.setText("Speichern");
    Info_Button_speichern.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Info_Button_speichernActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 18;
    gridBagConstraints.gridy = 26;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Button_speichern, gridBagConstraints);

    jLabel63.setText("Startzeit:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel63, gridBagConstraints);

    jLabel64.setText("Typ:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 10;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel64, gridBagConstraints);

    jLabel65Typ.setText("jLabel65");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 12;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel65Typ, gridBagConstraints);

    jLabel69.setText("Track Log");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 30;
    gridBagConstraints.gridwidth = 7;
    gridBagConstraints.ipady = 6;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(jLabel69, gridBagConstraints);

    Info_Button_Suche_TrackLog.setText("...");
    Info_Button_Suche_TrackLog.setToolTipText("Track Log ndern");
    Info_Button_Suche_TrackLog.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Info_Button_Suche_TrackLogActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 18;
    gridBagConstraints.gridy = 32;
    gridBagConstraints.ipady = -3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Info_Panel.add(Info_Button_Suche_TrackLog, gridBagConstraints);

    Info_Track_Log.setText("jTextField1");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 32;
    gridBagConstraints.gridwidth = 17;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    Info_Panel.add(Info_Track_Log, gridBagConstraints);

    Hauptfenster.addTab("Infos", null, Info_Panel, "");

    Statistik_Panel.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            Statistik_PanelComponentShown_StatistikStarten(evt);
        }
    });
    java.awt.GridBagLayout Statistik_PanelLayout1 = new java.awt.GridBagLayout();
    Statistik_PanelLayout1.columnWidths = new int[] { 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 };
    Statistik_PanelLayout1.rowHeights = new int[] { 0, 10, 0, 10, 0, 10, 0, 10, 0 };
    Statistik_Panel.setLayout(Statistik_PanelLayout1);

    Auswahl_Statistik.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Auswahl_StatistikActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.BASELINE_LEADING;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Statistik_Panel.add(Auswahl_Statistik, gridBagConstraints);

    java.awt.GridBagLayout jPanel2Layout = new java.awt.GridBagLayout();
    jPanel2Layout.columnWidths = new int[] { 0, 10, 0, 10, 0, 10, 0, 10, 0 };
    jPanel2Layout.rowHeights = new int[] { 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0 };
    jPanel2.setLayout(jPanel2Layout);

    Statistik_Hhe.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Hhe [m]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Hhe.setLayout(new java.awt.GridLayout(5, 2, 5, 5));

    jLabel1.setText("min.:");
    Statistik_Hhe.add(jLabel1);

    Statistik_Minimale_Hhe.setText("---");
    Statistik_Minimale_Hhe.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    Statistik_Hhe.add(Statistik_Minimale_Hhe);

    jLabel2.setText("max.:");
    Statistik_Hhe.add(jLabel2);

    Statistik_Maximale_Hhe.setText("---");
    Statistik_Hhe.add(Statistik_Maximale_Hhe);

    jLabel3.setText("Hm +:");
    Statistik_Hhe.add(jLabel3);

    Statistik_Summe_Hm_Steigung.setText("---");
    Statistik_Hhe.add(Statistik_Summe_Hm_Steigung);

    jLabel4.setText("Hm -:");
    Statistik_Hhe.add(jLabel4);

    Statistik_Summe_Hm_Geflle.setText("---");
    Statistik_Hhe.add(Statistik_Summe_Hm_Geflle);

    jLabel17.setText("Hm/km:");
    Statistik_Hhe.add(jLabel17);

    Statistik_HM_pro_km.setText("---");
    Statistik_Hhe.add(Statistik_HM_pro_km);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.gridheight = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Hhe, gridBagConstraints);

    Statistik_Geschwindigkeit
            .setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Geschwindigkeit [km/h]",
                    javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Geschwindigkeit.setLayout(new java.awt.GridLayout(3, 2, 5, 5));

    jLabel5.setText("max.:");
    jLabel5.setToolTipText("");
    Statistik_Geschwindigkeit.add(jLabel5);

    Statistik_Max_Geschw.setText("---");
    Statistik_Geschwindigkeit.add(Statistik_Max_Geschw);

    jLabel6.setText("Durchschnitt:");
    Statistik_Geschwindigkeit.add(jLabel6);

    Statistik_av_Geschw.setText("---");
    Statistik_Geschwindigkeit.add(Statistik_av_Geschw);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Geschwindigkeit, gridBagConstraints);

    Statistik_Herzfrequenz.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Herzfrequenz [p/min]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Herzfrequenz.setLayout(new java.awt.GridLayout(3, 2, 5, 5));

    jLabel7.setText("max.:");
    Statistik_Herzfrequenz.add(jLabel7);

    Statistik_max_HF.setText("---");
    Statistik_Herzfrequenz.add(Statistik_max_HF);

    jLabel8.setText("Durchschnitt:");
    Statistik_Herzfrequenz.add(jLabel8);

    Statistik_av_HF.setText("---");
    Statistik_Herzfrequenz.add(Statistik_av_HF);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Herzfrequenz, gridBagConstraints);

    Statistik_Steigung_m.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Steigung [m/min]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Steigung_m.setLayout(new java.awt.GridLayout(2, 2, 5, 5));

    jLabel9.setText("max.:");
    Statistik_Steigung_m.add(jLabel9);

    Statistik_max_Steigung_m.setText("---");
    Statistik_Steigung_m.add(Statistik_max_Steigung_m);

    jLabel10.setText("Durchschnitt:");
    Statistik_Steigung_m.add(jLabel10);

    Statistik_av_Steigung_m.setText("---");
    Statistik_Steigung_m.add(Statistik_av_Steigung_m);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Steigung_m, gridBagConstraints);

    Statistik_Geflle_m.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Geflle [m/min]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Geflle_m.setLayout(new java.awt.GridLayout(2, 2, 5, 5));

    jLabel12.setText("max.:");
    Statistik_Geflle_m.add(jLabel12);

    Statistik_max_Geflle_m.setText("---");
    Statistik_Geflle_m.add(Statistik_max_Geflle_m);

    jLabel13.setText("Durchschnitt:");
    Statistik_Geflle_m.add(jLabel13);

    Statistik_av_Geflle_m.setText("---");
    Statistik_Geflle_m.add(Statistik_av_Geflle_m);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Geflle_m, gridBagConstraints);

    Statistik_Temperatur.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Temperatur [C]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Temperatur.setLayout(new java.awt.GridLayout(3, 2, 5, 5));

    jLabel14.setText("min.:");
    Statistik_Temperatur.add(jLabel14);

    Statistik_min_Temp.setText("---");
    Statistik_Temperatur.add(Statistik_min_Temp);

    jLabel15.setText("max.:");
    Statistik_Temperatur.add(jLabel15);

    Statistik_max_Temp.setText("---");
    Statistik_Temperatur.add(Statistik_max_Temp);

    jLabel16.setText("Durchschnitt:");
    Statistik_Temperatur.add(jLabel16);

    Statistik_av_Temp.setText("---");
    Statistik_Temperatur.add(Statistik_av_Temp);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Temperatur, gridBagConstraints);

    Statistik_Cadence.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Cadence [n/min]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Cadence.setLayout(new java.awt.GridLayout(2, 2, 5, 5));

    jLabel18.setText("max.:");
    Statistik_Cadence.add(jLabel18);

    Statistik_max_Cadence.setText("---");
    Statistik_Cadence.add(Statistik_max_Cadence);

    jLabel19.setText("Durchschnitt:");
    Statistik_Cadence.add(jLabel19);

    Statistik_av_Cadence.setText("---");
    Statistik_Cadence.add(Statistik_av_Cadence);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Cadence, gridBagConstraints);

    Statistik_Steigung_p.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Steigung [%]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Steigung_p.setLayout(new java.awt.GridLayout(2, 2, 5, 5));

    jLabel20.setText("max.:");
    Statistik_Steigung_p.add(jLabel20);

    Statistik_max_Steigung_p.setText("---");
    Statistik_Steigung_p.add(Statistik_max_Steigung_p);

    jLabel21.setText("Durchschnitt:");
    Statistik_Steigung_p.add(jLabel21);

    Statistik_av_Steigung_p.setText("---");
    Statistik_Steigung_p.add(Statistik_av_Steigung_p);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Steigung_p, gridBagConstraints);

    Statistik_Geflle_p.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Geflle [%]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Geflle_p.setLayout(new java.awt.GridLayout(2, 2, 5, 5));

    jLabel22.setText("max.:");
    Statistik_Geflle_p.add(jLabel22);

    Statistik_max_Geflle_p.setText("---");
    Statistik_Geflle_p.add(Statistik_max_Geflle_p);

    jLabel23.setText("Durchschnitt:");
    Statistik_Geflle_p.add(jLabel23);

    Statistik_av_Geflle_p.setText("---");
    Statistik_Geflle_p.add(Statistik_av_Geflle_p);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Geflle_p, gridBagConstraints);

    Statistik_Zeit.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Zeit [hh:mm:ss]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Zeit.setLayout(new java.awt.GridLayout(3, 2, 5, 5));

    jLabel47.setText("absolut:");
    Statistik_Zeit.add(jLabel47);

    Statistik_Zeit_absolut.setText("---");
    Statistik_Zeit.add(Statistik_Zeit_absolut);

    jLabel48.setText("gefahren:");
    Statistik_Zeit.add(jLabel48);

    Statistik_Zeit_aktiv.setText("---");
    Statistik_Zeit.add(Statistik_Zeit_aktiv);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Zeit, gridBagConstraints);

    jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Zoom",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    jPanel5.setPreferredSize(new java.awt.Dimension(270, 65));
    jPanel5.setLayout(new java.awt.GridLayout(1, 0));

    jLabel25.setText("Teilstrecke:  ");
    jLabel25.setMaximumSize(new java.awt.Dimension(200, 26));
    jLabel25.setMinimumSize(new java.awt.Dimension(200, 26));
    jLabel25.setPreferredSize(new java.awt.Dimension(200, 26));
    jPanel5.add(jLabel25);

    Statistik_Teilstrecke.setText("jLabel26");
    jPanel5.add(Statistik_Teilstrecke);
    Statistik_Teilstrecke.getAccessibleContext().setAccessibleName("jLabel26_Teilstrecke");

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    jPanel2.add(jPanel5, gridBagConstraints);

    Statistik_Schrittlnge.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Schrittlnge [cm]",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Schrittlnge.setLayout(new java.awt.GridLayout(2, 2, 5, 5));

    jLabel26.setText("max.:");
    Statistik_Schrittlnge.add(jLabel26);

    Statistik_max_Schrittlnge.setText("---");
    Statistik_Schrittlnge.add(Statistik_max_Schrittlnge);

    jLabel28.setText("Durchschnitt:");
    Statistik_Schrittlnge.add(jLabel28);

    Statistik_av_Schrittlnge.setText("---");
    Statistik_Schrittlnge.add(Statistik_av_Schrittlnge);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Schrittlnge, gridBagConstraints);

    Statistik_Training.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Training",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Training.setLayout(new java.awt.GridLayout(4, 2, 5, 5));

    jLabel29.setText("Belastung:");
    Statistik_Training.add(jLabel29);

    Statistik_Belastung.setText("---");
    Statistik_Training.add(Statistik_Belastung);

    jLabel30.setText("Erholungszeit:");
    Statistik_Training.add(jLabel30);

    Statistik_Erholungszeit.setText("---");
    Statistik_Training.add(Statistik_Erholungszeit);

    jLabel35.setText("Lauf-Index:");
    Statistik_Training.add(jLabel35);

    Statistik_Lauf_Index.setText("---");
    Statistik_Training.add(Statistik_Lauf_Index);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Training, gridBagConstraints);

    Statistik_Kalorien.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Kalorien",
            javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION));
    Statistik_Kalorien.setLayout(new java.awt.GridLayout(4, 2, 5, 5));

    jLabel31.setText("kCal");
    Statistik_Kalorien.add(jLabel31);

    Statistik_Kalorien_absolut.setText("---");
    Statistik_Kalorien.add(Statistik_Kalorien_absolut);

    jLabel34.setText("kCal/h");
    Statistik_Kalorien.add(jLabel34);

    Statistik_Kalorien_h.setText("---");
    Statistik_Kalorien.add(Statistik_Kalorien_h);

    jLabel32.setText("Fett [%]");
    Statistik_Kalorien.add(jLabel32);

    Statistik_Fett.setText("---");
    Statistik_Kalorien.add(Statistik_Fett);

    jLabel33.setText("Protein [%]");
    Statistik_Kalorien.add(jLabel33);

    Statistik_Protein.setText("---");
    Statistik_Kalorien.add(Statistik_Protein);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 10;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    jPanel2.add(Statistik_Kalorien, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 7;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    Statistik_Panel.add(jPanel2, gridBagConstraints);

    javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
    jPanel3.setLayout(jPanel3Layout);
    jPanel3Layout.setHorizontalGroup(jPanel3Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
    gridBagConstraints.weighty = 100.0;
    Statistik_Panel.add(jPanel3, gridBagConstraints);

    javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
    jPanel4.setLayout(jPanel4Layout);
    jPanel4Layout.setHorizontalGroup(jPanel4Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 10;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 100.0;
    Statistik_Panel.add(jPanel4, gridBagConstraints);

    Statistik_Titel.setText("jLabel26");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Statistik_Panel.add(Statistik_Titel, gridBagConstraints);

    Hauptfenster.addTab("Statistik", null, Statistik_Panel, "");

    Graphik_Panel.setMinimumSize(new java.awt.Dimension(22, 22));
    Graphik_Panel.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            Graphik_PanelComponentShown(evt);
        }

        public void componentHidden(java.awt.event.ComponentEvent evt) {
            Graphik_PanelComponentHidden(evt);
        }
    });
    java.awt.GridBagLayout Graphik_PanelLayout = new java.awt.GridBagLayout();
    Graphik_PanelLayout.columnWidths = new int[] { 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 };
    Graphik_PanelLayout.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0 };
    Graphik_Panel.setLayout(Graphik_PanelLayout);

    Auswahl_Graphik.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Auswahl_GraphikActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.ipady = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Graphik_Panel.add(Auswahl_Graphik, gridBagConstraints);

    Graphik_Sub_Panel.setMinimumSize(new java.awt.Dimension(0, 0));
    Graphik_Sub_Panel.setPreferredSize(new java.awt.Dimension(0, 0));

    javax.swing.GroupLayout Graphik_Sub_PanelLayout = new javax.swing.GroupLayout(Graphik_Sub_Panel);
    Graphik_Sub_Panel.setLayout(Graphik_Sub_PanelLayout);
    Graphik_Sub_PanelLayout.setHorizontalGroup(Graphik_Sub_PanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    Graphik_Sub_PanelLayout.setVerticalGroup(Graphik_Sub_PanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 15;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    Graphik_Panel.add(Graphik_Sub_Panel, gridBagConstraints);

    Graphik_check_Geschwindigkeit.setText("Geschwindigkeit");
    Graphik_check_Geschwindigkeit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_GeschwindigkeitActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridheight = java.awt.GridBagConstraints.RELATIVE;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Geschwindigkeit, gridBagConstraints);

    Graphik_check_Hhe.setText("Hhe");
    Graphik_check_Hhe.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_HheActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Hhe, gridBagConstraints);

    Graphik_check_HF.setText("Herzfrequenz");
    Graphik_check_HF.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_HFActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_HF, gridBagConstraints);

    Graphik_check_Temp.setText("Temperatur");
    Graphik_check_Temp.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_TempActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 14;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Temp, gridBagConstraints);

    Graphik_check_Steigung_p.setText("Steigung [%]");
    Graphik_check_Steigung_p.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_Steigung_pActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 12;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Steigung_p, gridBagConstraints);

    Graphik_check_Steigung_m.setText("Steigung [m/min]");
    Graphik_check_Steigung_m.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_Steigung_mActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 12;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Steigung_m, gridBagConstraints);

    Graphik_check_Cadence.setText("Cadence");
    Graphik_check_Cadence.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_CadenceActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 10;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Cadence, gridBagConstraints);

    Graphik_Radio_Strecke.setSelected(true);
    Graphik_Radio_Strecke.setText("ber Strecke");
    Graphik_Radio_Strecke.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_Radio_StreckeActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
    Graphik_Panel.add(Graphik_Radio_Strecke, gridBagConstraints);

    Graphik_Radio_Zeit.setText("ber Zeit");
    Graphik_Radio_Zeit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_Radio_ZeitActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.ipady = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
    Graphik_Panel.add(Graphik_Radio_Zeit, gridBagConstraints);

    Graphik_check_Abstand.setText("Zeit- / Streckenabstand");
    Graphik_check_Abstand.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_AbstandActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 14;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.ipadx = 27;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Abstand, gridBagConstraints);

    Graphik_check_av_Geschw.setText("av-Geschw.");
    Graphik_check_av_Geschw.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_av_GeschwActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_av_Geschw, gridBagConstraints);

    Graphik_check_Schrittlnge.setText("Schrittlnge");
    Graphik_check_Schrittlnge.setToolTipText("");
    Graphik_check_Schrittlnge.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Graphik_check_SchrittlngeActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 10;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.ipadx = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    Graphik_Panel.add(Graphik_check_Schrittlnge, gridBagConstraints);

    Hauptfenster.addTab("Graphik", null, Graphik_Panel, "");

    Histogramm_Panel.setMinimumSize(new java.awt.Dimension(22, 22));
    Histogramm_Panel.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            Histogramm_PanelComponentShown(evt);
        }
    });
    java.awt.GridBagLayout Histogramm_PanelLayout = new java.awt.GridBagLayout();
    Histogramm_PanelLayout.columnWidths = new int[] { 0, 5, 0, 5, 0 };
    Histogramm_PanelLayout.rowHeights = new int[] { 0, 0, 0, 0, 0 };
    Histogramm_Panel.setLayout(Histogramm_PanelLayout);

    Auswahl_Histogramm.setAlignmentX(0.0F);
    Auswahl_Histogramm.setAlignmentY(0.0F);
    Auswahl_Histogramm.setMinimumSize(new java.awt.Dimension(200, 20));
    Auswahl_Histogramm.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Auswahl_HistogrammActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Histogramm_Panel.add(Auswahl_Histogramm, gridBagConstraints);

    Summenhistogramm_Check.setText("Summenhistogramme");
    Summenhistogramm_Check.setAlignmentY(0.0F);
    Summenhistogramm_Check.setMaximumSize(new java.awt.Dimension(32767, 32767));
    Summenhistogramm_Check.setMinimumSize(new java.awt.Dimension(300, 23));
    Summenhistogramm_Check.setOpaque(false);
    Summenhistogramm_Check.setPreferredSize(new java.awt.Dimension(300, 23));
    Summenhistogramm_Check.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Summenhistogramm_CheckActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Histogramm_Panel.add(Summenhistogramm_Check, gridBagConstraints);

    jPanel1.setLayout(new java.awt.GridBagLayout());

    jPanel18_HistoSP.setAlignmentX(0.0F);
    jPanel18_HistoSP.setAlignmentY(0.0F);

    javax.swing.GroupLayout jPanel18_HistoSPLayout = new javax.swing.GroupLayout(jPanel18_HistoSP);
    jPanel18_HistoSP.setLayout(jPanel18_HistoSPLayout);
    jPanel18_HistoSPLayout.setHorizontalGroup(jPanel18_HistoSPLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jPanel18_HistoSPLayout.setVerticalGroup(jPanel18_HistoSPLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.weightx = 0.5;
    gridBagConstraints.weighty = 0.5;
    jPanel1.add(jPanel18_HistoSP, gridBagConstraints);

    jPanel17_HistoHM.setAlignmentX(0.0F);
    jPanel17_HistoHM.setAlignmentY(0.0F);

    javax.swing.GroupLayout jPanel17_HistoHMLayout = new javax.swing.GroupLayout(jPanel17_HistoHM);
    jPanel17_HistoHM.setLayout(jPanel17_HistoHMLayout);
    jPanel17_HistoHMLayout.setHorizontalGroup(jPanel17_HistoHMLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jPanel17_HistoHMLayout.setVerticalGroup(jPanel17_HistoHMLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
    gridBagConstraints.weightx = 0.5;
    gridBagConstraints.weighty = 0.5;
    jPanel1.add(jPanel17_HistoHM, gridBagConstraints);

    jPanel16_HistoHF.setAlignmentX(0.0F);
    jPanel16_HistoHF.setAlignmentY(0.0F);

    javax.swing.GroupLayout jPanel16_HistoHFLayout = new javax.swing.GroupLayout(jPanel16_HistoHF);
    jPanel16_HistoHF.setLayout(jPanel16_HistoHFLayout);
    jPanel16_HistoHFLayout.setHorizontalGroup(jPanel16_HistoHFLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jPanel16_HistoHFLayout.setVerticalGroup(jPanel16_HistoHFLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 0.5;
    gridBagConstraints.weighty = 0.5;
    jPanel1.add(jPanel16_HistoHF, gridBagConstraints);

    jPanel19_HistoCd.setAlignmentX(0.0F);
    jPanel19_HistoCd.setAlignmentY(0.0F);

    javax.swing.GroupLayout jPanel19_HistoCdLayout = new javax.swing.GroupLayout(jPanel19_HistoCd);
    jPanel19_HistoCd.setLayout(jPanel19_HistoCdLayout);
    jPanel19_HistoCdLayout.setHorizontalGroup(jPanel19_HistoCdLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    jPanel19_HistoCdLayout.setVerticalGroup(jPanel19_HistoCdLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST;
    gridBagConstraints.weightx = 0.5;
    gridBagConstraints.weighty = 0.5;
    jPanel1.add(jPanel19_HistoCd, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.gridheight = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    Histogramm_Panel.add(jPanel1, gridBagConstraints);

    jLabel26_Histotitel.setText("jLabel26");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    Histogramm_Panel.add(jLabel26_Histotitel, gridBagConstraints);

    Hauptfenster.addTab("Histogramme", null, Histogramm_Panel, "");

    Map_Panel.setPreferredSize(new java.awt.Dimension(594, 400));
    Map_Panel.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            Map_PanelComponentShown(evt);
        }
    });
    java.awt.GridBagLayout Map_PanelLayout = new java.awt.GridBagLayout();
    Map_PanelLayout.columnWidths = new int[] { 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 };
    Map_PanelLayout.rowHeights = new int[] { 0, 5, 0, 5, 0 };
    Map_Panel.setLayout(Map_PanelLayout);

    Auswahl_Map.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Auswahl_MapActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Map_Panel.add(Auswahl_Map, gridBagConstraints);

    LoadGoogleEarth.setText("Google Earth");
    LoadGoogleEarth.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            LoadGoogleEarthActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 10;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Map_Panel.add(LoadGoogleEarth, gridBagConstraints);

    Kein_kmz_text.setText("Kein Log File");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Map_Panel.add(Kein_kmz_text, gridBagConstraints);

    Map_internal_Panel.setLayout(null);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 11;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    Map_Panel.add(Map_internal_Panel, gridBagConstraints);

    jLabel_map_streckenlnge.setText("jLabel26");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    Map_Panel.add(jLabel_map_streckenlnge, gridBagConstraints);

    jLabel27.setText("GPS Lnge:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    Map_Panel.add(jLabel27, gridBagConstraints);

    Map_Type.setModel(
            new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    Map_Type.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Map_TypeActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Map_Panel.add(Map_Type, gridBagConstraints);

    Hauptfenster.addTab("Landkarte", Map_Panel);

    Jahresuebersicht_Panel.setPreferredSize(new java.awt.Dimension(688, 400));
    Jahresuebersicht_Panel.addComponentListener(new java.awt.event.ComponentAdapter() {
        public void componentShown(java.awt.event.ComponentEvent evt) {
            Jahresuebersicht_PanelComponentShown(evt);
        }
    });
    java.awt.GridBagLayout Jahresuebersicht_PanelLayout = new java.awt.GridBagLayout();
    Jahresuebersicht_PanelLayout.columnWidths = new int[] { 0, 5, 0, 5, 0, 5, 0, 5, 0, 5, 0 };
    Jahresuebersicht_PanelLayout.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
    Jahresuebersicht_Panel.setLayout(Jahresuebersicht_PanelLayout);

    Auswahl_bersicht.setMinimumSize(new java.awt.Dimension(200, 20));
    Auswahl_bersicht.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            Auswahl_bersichtActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Jahresuebersicht_Panel.add(Auswahl_bersicht, gridBagConstraints);

    JahrVergleich.setMinimumSize(new java.awt.Dimension(200, 20));
    JahrVergleich.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            JahrVergleichActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 6;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Jahresuebersicht_Panel.add(JahrVergleich, gridBagConstraints);

    jLabel67.setText("Vergleich mit Jahr:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Jahresuebersicht_Panel.add(jLabel67, gridBagConstraints);

    jLabel70.setText("   Jahr:");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Jahresuebersicht_Panel.add(jLabel70, gridBagConstraints);

    jRadioButton_jahresverlauf.setSelected(true);
    jRadioButton_jahresverlauf.setText("Jahresverlauf");
    jRadioButton_jahresverlauf.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButton_jahresverlaufActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 8;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Jahresuebersicht_Panel.add(jRadioButton_jahresverlauf, gridBagConstraints);

    jRadioButton_monatsbersicht.setText("Monatsbersicht");
    jRadioButton_monatsbersicht.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jRadioButton_monatsbersichtActionPerformed(evt);
        }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 10;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
    Jahresuebersicht_Panel.add(jRadioButton_monatsbersicht, gridBagConstraints);

    jPanel17bersichtchart
            .setLayout(new javax.swing.BoxLayout(jPanel17bersichtchart, javax.swing.BoxLayout.LINE_AXIS));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 11;
    gridBagConstraints.gridheight = 7;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    Jahresuebersicht_Panel.add(jPanel17bersichtchart, gridBagConstraints);

    Hauptfenster.addTab("Jahresbersicht", null, Jahresuebersicht_Panel, "");

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    getContentPane().add(Hauptfenster, gridBagConstraints);

    jMenuDatei.setLabel("Datei     ");

    jMenuOpen.setText("Rohdaten Importieren");
    jMenuOpen.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jMenuOpenActionPerformed(evt);
        }
    });
    jMenuDatei.add(jMenuOpen);

    jMenuOpenall.setText("Alle Rohdaten Importieren");
    jMenuOpenall.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jMenuOpenallActionPerformed(evt);
        }
    });
    jMenuDatei.add(jMenuOpenall);
    jMenuDatei.add(jSeparator1);

    jMenuLschen.setText("Lschen");
    jMenuLschen.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jMenuLschenActionPerformed(evt);
        }
    });
    jMenuDatei.add(jMenuLschen);

    jMenuExit.setText("Beenden");
    jMenuExit.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            jMenuExitActionPerformed(evt);
        }
    });
    jMenuDatei.add(jMenuExit);

    jMenuHaupt.add(jMenuDatei);

    jMenu_V800_Laden.setText("Daten Empfangen     ");
    jMenu_V800_Laden.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jMenu_V800_LadenMouseClicked(evt);
        }
    });
    jMenuHaupt.add(jMenu_V800_Laden);

    jMenuTourEditor.setLabel("Tour Editor     ");
    jMenuTourEditor.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jMenuTourEditorMouseClicked(evt);
        }
    });
    jMenuHaupt.add(jMenuTourEditor);
    jMenuTourEditor.getAccessibleContext().setAccessibleName("Tour Editor");

    jMenuEinstellungen.setLabel("Einstellungen     ");
    jMenuEinstellungen.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jMenuEinstellungenMouseClicked(evt);
        }
    });
    jMenuHaupt.add(jMenuEinstellungen);

    jMenuHilfe.setText("Hilfe");
    jMenuHilfe.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jMenuHilfeMouseClicked(evt);
        }
    });
    jMenuHaupt.add(jMenuHilfe);

    setJMenuBar(jMenuHaupt);

    pack();
}

From source file:net.technicpack.launcher.ui.InstallerFrame.java

private void setupStandardInstall(JPanel panel) {
    panel.setLayout(new GridBagLayout());

    JLabel standardSpiel = new JLabel("<html><body align=\"left\" style='margin-right:10px;'>"
            + resources.getString("launcher.installer.standardspiel") + "</body></html>");
    standardSpiel.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 16));
    standardSpiel.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    standardSpiel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    panel.add(standardSpiel, new GridBagConstraints(0, 0, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(9, 0, 0, 3), 0, 0));

    panel.add(Box.createGlue(), new GridBagConstraints(0, 1, 3, 1, 1.0, 0.7, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

    standardDefaultDirectory = new JCheckBox(resources.getString("launcher.installer.default"));
    standardDefaultDirectory.setOpaque(false);
    standardDefaultDirectory.setHorizontalAlignment(SwingConstants.RIGHT);
    standardDefaultDirectory.setBorder(BorderFactory.createEmptyBorder());
    standardDefaultDirectory.setIconTextGap(0);
    standardDefaultDirectory.setSelectedIcon(resources.getIcon("checkbox_closed.png"));
    standardDefaultDirectory.setIcon(resources.getIcon("checkbox_open.png"));
    standardDefaultDirectory.setFocusPainted(false);
    standardDefaultDirectory.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 16));
    standardDefaultDirectory.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    standardDefaultDirectory.setIconTextGap(6);
    standardDefaultDirectory.setSelected(settings.isPortable() || settings.getTechnicRoot().getAbsolutePath()
            .equals(SettingsFactory.getTechnicHomeDir().getAbsolutePath()));
    standardDefaultDirectory.addActionListener(new ActionListener() {
        @Override//w  w w  . j av  a2 s.c  o  m
        public void actionPerformed(ActionEvent e) {
            useDefaultDirectoryChanged();
        }
    });
    panel.add(standardDefaultDirectory, new GridBagConstraints(0, 2, 3, 1, 0, 0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 24, 12, 0), 0, 0));

    JLabel installFolderLabel = new JLabel(resources.getString("launcher.installer.folder"));
    installFolderLabel.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    installFolderLabel.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    panel.add(installFolderLabel, new GridBagConstraints(0, 3, 1, 1, 0, 0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 24, 0, 8), 0, 0));

    String installDir = SettingsFactory.getTechnicHomeDir().getAbsolutePath();

    if (!settings.isPortable())
        installDir = settings.getTechnicRoot().getAbsolutePath();

    standardInstallDir = new JTextField(installDir);
    standardInstallDir.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    standardInstallDir.setBackground(LauncherFrame.COLOR_FORMELEMENT_INTERNAL);
    standardInstallDir.setHighlighter(null);
    standardInstallDir.setEditable(false);
    standardInstallDir.setCursor(null);
    panel.add(standardInstallDir, new GridBagConstraints(1, 3, 1, 1, 1, 0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 5, 0, 5), 0, 0));

    standardSelectButton = new RoundedButton(resources.getString("launcher.installer.select"));
    standardSelectButton.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    standardSelectButton.setContentAreaFilled(false);
    standardSelectButton.setHoverForeground(LauncherFrame.COLOR_BLUE);
    standardSelectButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            selectStandard();
        }
    });
    panel.add(standardSelectButton, new GridBagConstraints(2, 3, 1, 1, 0, 0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 5, 0, 16), 0, 0));

    useDefaultDirectoryChanged();

    panel.add(Box.createGlue(), new GridBagConstraints(0, 4, 3, 1, 1.0, 1.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

    String defaultLocaleText = resources.getString("launcheroptions.language.default");
    if (!resources.isDefaultLocaleSupported()) {
        defaultLocaleText = defaultLocaleText
                .concat(" (" + resources.getString("launcheroptions.language.unavailable") + ")");
    }

    standardLanguages = new JComboBox();
    standardLanguages.addItem(new LanguageItem(ResourceLoader.DEFAULT_LOCALE, defaultLocaleText, resources));
    for (int i = 0; i < ResourceLoader.SUPPORTED_LOCALES.length; i++) {
        standardLanguages
                .addItem(new LanguageItem(resources.getCodeFromLocale(ResourceLoader.SUPPORTED_LOCALES[i]),
                        ResourceLoader.SUPPORTED_LOCALES[i].getDisplayName(ResourceLoader.SUPPORTED_LOCALES[i]),
                        resources.getVariant(ResourceLoader.SUPPORTED_LOCALES[i])));
    }
    if (!settings.getLanguageCode().equalsIgnoreCase(ResourceLoader.DEFAULT_LOCALE)) {
        Locale loc = resources.getLocaleFromCode(settings.getLanguageCode());

        for (int i = 0; i < ResourceLoader.SUPPORTED_LOCALES.length; i++) {
            if (loc.equals(ResourceLoader.SUPPORTED_LOCALES[i])) {
                standardLanguages.setSelectedIndex(i + 1);
                break;
            }
        }
    }
    standardLanguages.setBorder(new RoundBorder(LauncherFrame.COLOR_SCROLL_THUMB, 1, 10));
    standardLanguages.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 14));
    standardLanguages.setUI(new LanguageCellUI(resources));
    standardLanguages.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    standardLanguages.setBackground(LauncherFrame.COLOR_SELECTOR_BACK);
    standardLanguages.setRenderer(new LanguageCellRenderer(resources, "globe.png",
            LauncherFrame.COLOR_SELECTOR_BACK, LauncherFrame.COLOR_WHITE_TEXT));
    standardLanguages.setEditable(false);
    standardLanguages.setFocusable(false);
    standardLanguages.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            standardLanguageChanged();
        }
    });
    panel.add(standardLanguages, new GridBagConstraints(0, 5, 1, 0, 0, 0, GridBagConstraints.SOUTHWEST,
            GridBagConstraints.NONE, new Insets(0, 8, 8, 0), 0, 0));

    RoundedButton install = new RoundedButton(resources.getString("launcher.installer.install"));
    install.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    install.setContentAreaFilled(false);
    install.setForeground(LauncherFrame.COLOR_BUTTON_BLUE);
    install.setHoverForeground(LauncherFrame.COLOR_BLUE);
    install.setBorder(BorderFactory.createEmptyBorder(8, 56, 8, 56));
    install.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            standardInstall();
        }
    });
    panel.add(install, new GridBagConstraints(1, 5, 2, 1, 0, 0, GridBagConstraints.EAST,
            GridBagConstraints.VERTICAL, new Insets(0, 0, 8, 8), 0, 0));

}

From source file:net.technicpack.launcher.ui.InstallerFrame.java

private void setupPortableMode(JPanel panel) {
    panel.setLayout(new GridBagLayout());

    JLabel portableSpiel = new JLabel("<html><body align=\"left\" style='margin-right:10px;'>"
            + resources.getString("launcher.installer.portablespiel") + "</body></html>");
    portableSpiel.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 16));
    portableSpiel.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    portableSpiel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
    panel.add(portableSpiel, new GridBagConstraints(0, 0, 3, 1, 1.0, 0.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(9, 8, 9, 3), 0, 0));

    panel.add(Box.createGlue(), new GridBagConstraints(0, 1, 3, 1, 1.0, 0.7, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

    JLabel installFolderLabel = new JLabel(resources.getString("launcher.installer.folder"));
    installFolderLabel.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    installFolderLabel.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    panel.add(installFolderLabel, new GridBagConstraints(0, 2, 1, 1, 0, 0, GridBagConstraints.WEST,
            GridBagConstraints.NONE, new Insets(0, 24, 0, 8), 0, 0));

    String installDir = "";
    if (settings.isPortable())
        installDir = settings.getTechnicRoot().getAbsolutePath();

    portableInstallDir = new JTextField(installDir);
    portableInstallDir.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    portableInstallDir.setForeground(LauncherFrame.COLOR_BLUE);
    portableInstallDir.setBackground(LauncherFrame.COLOR_FORMELEMENT_INTERNAL);
    portableInstallDir.setHighlighter(null);
    portableInstallDir.setEditable(false);
    portableInstallDir.setCursor(null);//from  ww w . j  a  v  a  2s. c o  m
    portableInstallDir.setBorder(new RoundBorder(LauncherFrame.COLOR_BUTTON_BLUE, 1, 8));
    panel.add(portableInstallDir, new GridBagConstraints(1, 2, 1, 1, 1, 0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 5, 0, 5), 0, 0));

    RoundedButton selectInstall = new RoundedButton(resources.getString("launcher.installer.select"));
    selectInstall.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    selectInstall.setContentAreaFilled(false);
    selectInstall.setForeground(LauncherFrame.COLOR_BUTTON_BLUE);
    selectInstall.setHoverForeground(LauncherFrame.COLOR_BLUE);
    selectInstall.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            selectPortable();
        }
    });
    panel.add(selectInstall, new GridBagConstraints(2, 2, 1, 1, 0, 0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 5, 0, 16), 0, 0));

    panel.add(Box.createGlue(), new GridBagConstraints(0, 3, 3, 1, 1.0, 1.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));

    String defaultLocaleText = resources.getString("launcheroptions.language.default");
    if (!resources.isDefaultLocaleSupported()) {
        defaultLocaleText = defaultLocaleText
                .concat(" (" + resources.getString("launcheroptions.language.unavailable") + ")");
    }

    portableLanguages = new JComboBox();
    portableLanguages.addItem(new LanguageItem(ResourceLoader.DEFAULT_LOCALE, defaultLocaleText, resources));
    for (int i = 0; i < ResourceLoader.SUPPORTED_LOCALES.length; i++) {
        portableLanguages
                .addItem(new LanguageItem(resources.getCodeFromLocale(ResourceLoader.SUPPORTED_LOCALES[i]),
                        ResourceLoader.SUPPORTED_LOCALES[i].getDisplayName(ResourceLoader.SUPPORTED_LOCALES[i]),
                        resources.getVariant(ResourceLoader.SUPPORTED_LOCALES[i])));
    }
    if (!settings.getLanguageCode().equalsIgnoreCase(ResourceLoader.DEFAULT_LOCALE)) {
        Locale loc = resources.getLocaleFromCode(settings.getLanguageCode());

        for (int i = 0; i < ResourceLoader.SUPPORTED_LOCALES.length; i++) {
            if (loc.equals(ResourceLoader.SUPPORTED_LOCALES[i])) {
                portableLanguages.setSelectedIndex(i + 1);
                break;
            }
        }
    }
    portableLanguages.setBorder(new RoundBorder(LauncherFrame.COLOR_SCROLL_THUMB, 1, 10));
    portableLanguages.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 14));
    portableLanguages.setUI(new LanguageCellUI(resources));
    portableLanguages.setForeground(LauncherFrame.COLOR_WHITE_TEXT);
    portableLanguages.setBackground(LauncherFrame.COLOR_SELECTOR_BACK);
    portableLanguages.setRenderer(new LanguageCellRenderer(resources, "globe.png",
            LauncherFrame.COLOR_SELECTOR_BACK, LauncherFrame.COLOR_WHITE_TEXT));
    portableLanguages.setEditable(false);
    portableLanguages.setFocusable(false);
    portableLanguages.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            portableLanguageChanged();
        }
    });
    panel.add(portableLanguages, new GridBagConstraints(0, 4, 1, 0, 0, 0, GridBagConstraints.SOUTHWEST,
            GridBagConstraints.NONE, new Insets(0, 8, 8, 0), 0, 0));

    portableInstallButton = new RoundedButton(resources.getString("launcher.installer.install"));
    portableInstallButton.setFont(resources.getFont(ResourceLoader.FONT_OPENSANS, 18));
    portableInstallButton.setContentAreaFilled(false);
    portableInstallButton.setForeground(LauncherFrame.COLOR_GREY_TEXT);
    portableInstallButton.setHoverForeground(LauncherFrame.COLOR_BLUE);
    portableInstallButton.setBorder(BorderFactory.createEmptyBorder(8, 56, 8, 56));
    portableInstallButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
            portableInstall();
        }
    });
    portableInstallButton.setEnabled(false);

    if (!installDir.equals("")) {
        portableInstallButton.setForeground(LauncherFrame.COLOR_BUTTON_BLUE);
        portableInstallButton.setEnabled(true);
    }

    panel.add(portableInstallButton, new GridBagConstraints(1, 4, 2, 1, 0, 0, GridBagConstraints.EAST,
            GridBagConstraints.VERTICAL, new Insets(0, 0, 8, 8), 0, 0));
}

From source file:org.executequery.gui.browser.TableDataTab.java

private void init() throws Exception {

    if (displayRowCount) {

        initRowCountPanel();/*  w ww  .j a v a  2s  .c  o  m*/
    }

    canEditTableNotePanel = createCanEditTableNotePanel();
    canEditTableNoteConstraints = new GridBagConstraints(1, 1, 1, 1, 1.0, 0, GridBagConstraints.NORTHWEST,
            GridBagConstraints.HORIZONTAL, new Insets(5, 5, 0, 5), 0, 0);

    scroller = new JScrollPane();
    scrollerConstraints = new GridBagConstraints(1, 2, 1, 1, 1.0, 1.0, GridBagConstraints.SOUTHEAST,
            GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0);

    rowCountPanelConstraints = new GridBagConstraints(1, 3, 1, 1, 1.0, 0, GridBagConstraints.SOUTHWEST,
            GridBagConstraints.HORIZONTAL, new Insets(0, 5, 5, 5), 0, 0);

    errorLabelConstraints = new GridBagConstraints(1, 1, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER,
            GridBagConstraints.BOTH, new Insets(5, 5, 5, 5), 0, 0);

    tableDataChanges = new ArrayList<TableDataChange>();
    alwaysShowCanEditNotePanel = SystemProperties.getBooleanProperty(Constants.USER_PROPERTIES_KEY,
            "browser.always.show.table.editable.label");

    cancelPanel = new InterruptibleProcessPanel("Executing query for data...");

    EventMediator.registerListener(this);
}

From source file:org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ExceptionDialog.java

private void init() {
    messages = new Messages(getLocale(), SwingCommonModule.BUNDLE_NAME,
            ObjectUtilities.getClassLoader(SwingCommonModule.class));
    setModal(true);//from   w  w  w .j  ava2s .  c  om
    detailsAction = new DetailsAction();

    messageLabel = new JLabel();
    backtraceArea = new JTextArea();

    scroller = new JScrollPane(backtraceArea);
    scroller.setVisible(false);

    final JPanel detailPane = new JPanel();
    detailPane.setLayout(new GridBagLayout());
    GridBagConstraints gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.CENTER;
    gbc.fill = GridBagConstraints.NONE;
    gbc.weightx = 0;
    gbc.weighty = 0;
    gbc.gridx = 0;
    gbc.gridy = 0;
    final JLabel icon = new JLabel(UIManager.getDefaults().getIcon("OptionPane.errorIcon")); //$NON-NLS-1$
    icon.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));
    detailPane.add(icon, gbc);

    gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.WEST;
    gbc.fill = GridBagConstraints.NONE;
    gbc.weightx = 1;
    gbc.weighty = 1;
    gbc.gridx = 1;
    gbc.gridy = 0;
    detailPane.add(messageLabel);

    gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.SOUTH;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.weightx = 0;
    gbc.weighty = 0;
    gbc.gridx = 0;
    gbc.gridy = 2;
    gbc.gridwidth = 2;
    detailPane.add(createButtonPane(), gbc);

    filler = new JPanel();
    filler.setPreferredSize(new Dimension(0, 0));
    filler.setBackground(Color.green);
    gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.NORTH;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.weightx = 1;
    gbc.weighty = 5;
    gbc.gridx = 0;
    gbc.gridy = 3;
    gbc.gridwidth = 2;
    detailPane.add(filler, gbc);

    gbc = new GridBagConstraints();
    gbc.anchor = GridBagConstraints.SOUTHWEST;
    gbc.fill = GridBagConstraints.BOTH;
    gbc.weightx = 1;
    gbc.weighty = 5;
    gbc.gridx = 0;
    gbc.gridy = 4;
    gbc.gridwidth = 2;
    detailPane.add(scroller, gbc);

    setContentPane(detailPane);
}

From source file:org.pentaho.ui.xul.swing.tags.SwingGrid.java

@Override
public void layout() {

    if (this.getChildNodes().size() < 2) {
        logger.warn("Grid does not contain Column and Row children");
        return;/*  w w  w. ja  v a2s. co m*/
    }

    XulComponent columns = this.getChildNodes().get(0);
    XulComponent rows = this.getChildNodes().get(1);

    int colCount = 0;
    int rowCount = 0;
    float colFlexTotal = 0;
    float rowTotalFlex = 0;
    for (XulComponent col : columns.getChildNodes()) {
        if (col.getFlex() > 0) {
            colFlexTotal += col.getFlex();
        }
        colCount++;
    }

    for (XulComponent row : rows.getChildNodes()) {
        if (row.getFlex() > 0) {
            rowTotalFlex += row.getFlex();
        }
        rowCount++;
    }

    for (XulComponent row : rows.getChildNodes()) {
        gc.gridx = 0;

        for (XulComponent xulComp : row.getChildNodes()) {
            gc.weightx = 0.0;
            gc.gridwidth = 1;
            gc.gridheight = 1;
            gc.weighty = 0.0;
            gc.anchor = GridBagConstraints.NORTHWEST;
            gc.fill = GridBagConstraints.NONE;

            Component comp = (Component) xulComp.getManagedObject();
            float colFlex = columns.getChildNodes().get(gc.gridx).getFlex();
            int rowFlex = row.getFlex();

            Align colAlignment = null;
            Align rowAlignment = null;
            String colAlignmentStr = xulComp.getAlign();
            String rowAlignStr = row.getAlign();
            if (colAlignmentStr != null) {
                colAlignment = Align.valueOf(colAlignmentStr);
            }
            if (rowAlignStr != null) {
                rowAlignment = Align.valueOf(rowAlignStr);
            }

            if (colFlex > 0) {
                gc.weightx = (colFlex / colFlexTotal);
            }
            if (rowFlex > 0) {
                gc.weighty = (rowFlex / rowTotalFlex);
            }
            if (colAlignment == Align.STRETCH && xulComp.getFlex() > 0) {
                gc.fill = GridBagConstraints.BOTH;
            } else if (colAlignment == Align.STRETCH) {
                gc.fill = GridBagConstraints.HORIZONTAL;
            } else if (xulComp.getFlex() > 0) {
                gc.fill = GridBagConstraints.VERTICAL;
            }

            if (row.getChildNodes().indexOf(xulComp) + 1 == row.getChildNodes().size()) {
                gc.gridwidth = GridBagConstraints.REMAINDER;
            } else {
                gc.gridwidth = 1;
            }
            if (rows.getChildNodes().indexOf(row) + 1 == rows.getChildNodes().size()) {
                gc.gridheight = GridBagConstraints.REMAINDER;
            } else {
                gc.gridheight = 1;
            }

            // gc.gridheight = row.getFlex() + 1;

            if (colAlignment != null && rowAlignment != null) {
                switch (rowAlignment) {
                case START:
                    switch (colAlignment) {
                    case START:
                        gc.anchor = GridBagConstraints.NORTHWEST;
                        break;
                    case CENTER:
                        gc.anchor = GridBagConstraints.NORTH;
                        break;
                    case END:
                        gc.anchor = GridBagConstraints.NORTHEAST;
                        break;
                    }
                    break;
                case CENTER:
                    switch (colAlignment) {
                    case START:
                        gc.anchor = GridBagConstraints.WEST;
                        break;
                    case CENTER:
                        gc.anchor = GridBagConstraints.CENTER;
                        break;
                    case END:
                        gc.anchor = GridBagConstraints.EAST;
                        break;
                    }
                    break;
                case END:
                    switch (colAlignment) {
                    case START:
                        gc.anchor = GridBagConstraints.SOUTHWEST;
                        break;
                    case CENTER:
                        gc.anchor = GridBagConstraints.SOUTH;
                        break;
                    case END:
                        gc.anchor = GridBagConstraints.SOUTHEAST;
                        break;
                    }
                }
            } else if (rowAlignment != null) {
                switch (rowAlignment) {
                case START:
                    gc.anchor = GridBagConstraints.NORTHWEST;
                    break;
                case CENTER:
                    gc.anchor = GridBagConstraints.WEST;
                    break;
                case END:
                    gc.anchor = GridBagConstraints.SOUTHWEST;
                    break;
                }
            } else if (colAlignment != null) {

                switch (colAlignment) {
                case START:
                    gc.anchor = GridBagConstraints.NORTHWEST;
                    break;
                case CENTER:
                    gc.anchor = GridBagConstraints.NORTH;
                    break;
                case END:
                    gc.anchor = GridBagConstraints.NORTHEAST;
                    break;
                }
            }

            if (comp.getWidth() > 0 || comp.getHeight() > 0) {
                Dimension minSize = comp.getMinimumSize();
                Dimension prefSize = comp.getPreferredSize();

                if (comp.getWidth() > 0) {
                    minSize.width = comp.getWidth();
                    prefSize.width = comp.getWidth();
                }
                if (comp.getHeight() > 0) {
                    minSize.height = comp.getHeight();
                    prefSize.height = comp.getHeight();
                }
                comp.setMinimumSize(minSize);
                comp.setPreferredSize(prefSize);
            } else {
                comp.setPreferredSize(comp.getMinimumSize());
            }

            grid.add(comp, gc);
            gc.gridx++;
        }

        gc.gridy++;
    }

    if (rowTotalFlex == 0) {
        // Add in an extra row at the bottom to push others up
        gc.gridy++;
        gc.weighty = 1;
        gc.fill = gc.REMAINDER;
        grid.add(Box.createGlue(), gc);
    }
    this.initialized = true;
}

From source file:org.rapidcontext.app.ui.ControlPanel.java

/**
 * Initializes the panel UI./* w  ww. jav  a 2 s .  co  m*/
 */
private void initialize() {
    Rectangle bounds = new Rectangle();
    GridBagConstraints c;
    JLabel label;
    Font font;
    Properties info;
    String str;

    // Set system UI looks
    if (SystemUtils.IS_OS_MAC_OSX || SystemUtils.IS_OS_WINDOWS) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ignore) {
            // Ah well... at least we tried.
        }
    }

    // Set title, menu & layout
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setTitle("RapidContext Server");
    setMenuBar(menuBar);
    initializeMenu();
    getContentPane().setLayout(new GridBagLayout());
    try {
        logotype = ImageIO.read(getClass().getResource("logotype.png"));
        Image img = ImageIO.read(getClass().getResource("logotype-icon-256x256.png"));
        setIconImage(img);
        if (SystemUtils.IS_OS_MAC_OSX) {
            MacApplication.get().setDockIconImage(img);
        }
    } catch (Exception ignore) {
        // Again, we only do our best effort here
    }

    // Add logotype
    c = new GridBagConstraints();
    c.gridheight = 5;
    c.insets = new Insets(6, 15, 10, 10);
    c.anchor = GridBagConstraints.NORTHWEST;
    Image small = logotype.getScaledInstance(128, 128, Image.SCALE_SMOOTH);
    getContentPane().add(new JLabel(new ImageIcon(small)), c);

    // Add link label
    c = new GridBagConstraints();
    c.gridx = 1;
    c.insets = new Insets(10, 10, 2, 10);
    c.anchor = GridBagConstraints.WEST;
    getContentPane().add(new JLabel("Server URL:"), c);
    serverLink.setText("http://localhost:" + server.port + "/");
    serverLink.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            try {
                AppUtils.openURL(serverLink.getText());
            } catch (Exception e) {
                error(e.getMessage());
            }
        }
    });
    c = new GridBagConstraints();
    c.gridx = 2;
    c.weightx = 1.0;
    c.insets = new Insets(10, 0, 2, 10);
    c.anchor = GridBagConstraints.WEST;
    getContentPane().add(serverLink, c);

    // Add login info label
    label = new JLabel("Login as 'admin' on a new server.");
    font = label.getFont();
    font = font.deriveFont(Font.ITALIC, font.getSize() - 2);
    label.setFont(font);
    c = new GridBagConstraints();
    c.gridx = 2;
    c.gridy = 1;
    c.gridwidth = 2;
    c.insets = new Insets(0, 0, 6, 10);
    c.anchor = GridBagConstraints.WEST;
    getContentPane().add(label, c);

    // Add status label
    c = new GridBagConstraints();
    c.gridx = 1;
    c.gridy = 2;
    c.insets = new Insets(0, 10, 6, 10);
    c.anchor = GridBagConstraints.WEST;
    getContentPane().add(new JLabel("Status:"), c);
    c = new GridBagConstraints();
    c.gridx = 2;
    c.gridy = 2;
    c.insets = new Insets(0, 0, 6, 10);
    c.anchor = GridBagConstraints.WEST;
    getContentPane().add(statusLabel, c);

    // Add version label
    c = new GridBagConstraints();
    c.gridx = 1;
    c.gridy = 3;
    c.insets = new Insets(0, 10, 6, 10);
    c.anchor = GridBagConstraints.WEST;
    getContentPane().add(new JLabel("Version:"), c);
    c = new GridBagConstraints();
    c.gridx = 2;
    c.gridy = 3;
    c.insets = new Insets(0, 0, 6, 10);
    c.anchor = GridBagConstraints.WEST;
    info = Main.buildInfo();
    str = info.getProperty("build.version") + " (built " + info.getProperty("build.date") + ")";
    getContentPane().add(new JLabel(str), c);

    // Add buttons
    startButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            start();
        }
    });
    c = new GridBagConstraints();
    c.gridx = 1;
    c.gridy = 4;
    c.weighty = 1.0;
    c.insets = new Insets(0, 10, 10, 10);
    c.anchor = GridBagConstraints.SOUTH;
    getContentPane().add(startButton, c);
    stopButton.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
            stop();
        }
    });
    c = new GridBagConstraints();
    c.gridx = 2;
    c.gridy = 4;
    c.weighty = 1.0;
    c.insets = new Insets(0, 0, 10, 0);
    c.anchor = GridBagConstraints.SOUTHWEST;
    getContentPane().add(stopButton, c);

    // Set size & position
    pack();
    bounds = this.getBounds();
    bounds.width = 470;
    bounds.x = 100;
    bounds.y = 100;
    setBounds(bounds);
}

From source file:org.rdv.ui.MainPanel.java

private void initAudioPlayerPanel() {
    audioPlayerPanel = new AudioPlayerPanel();
    audioPlayerPanel.setVisible(false);//  w w w.  jav a 2  s .  c  om
    c.fill = GridBagConstraints.HORIZONTAL;
    c.weightx = 0;
    c.weighty = 0;
    c.gridx = 0;
    c.gridy = 2;
    c.gridwidth = 2;
    c.gridheight = 1;
    c.ipadx = 0;
    c.ipady = 0;
    c.insets = new java.awt.Insets(0, 0, 8, 6);
    c.anchor = GridBagConstraints.SOUTHWEST;
    rightPanel.add(audioPlayerPanel, c);

    log.info("Added Audio Player Panel.");
}

From source file:org.rdv.ui.MainPanel.java

private void initMarkerSubmitPanel() {
    markerSubmitPanel = new MarkerSubmitPanel(rbnb);
    c.fill = GridBagConstraints.HORIZONTAL;
    c.weightx = 0;/*from   w w w. j  a  v a2 s.  c  o m*/
    c.weighty = 0;
    c.gridx = 0;
    c.gridy = 3;
    c.gridwidth = 2;
    c.gridheight = 1;
    c.ipadx = 0;
    c.ipady = 0;
    c.insets = new java.awt.Insets(0, 0, 8, 6);
    c.anchor = GridBagConstraints.SOUTHWEST;
    rightPanel.add(markerSubmitPanel, c);

    log.info("Added Marker Submission Panel.");
}