setMinimumSize(new java.awt.Dimension(160, 28)); setPreferredSize(new java.awt.Dimension(160, 28));
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        gotoIcon = new javax.swing.JLabel();        consistChangeJPanel = new TrainViewJPanel();        noChangeJLabel = new javax.swing.JLabel();        stationNameJLabel = new javax.swing.JLabel();        ordersJLabel = new javax.swing.JLabel();        setLayout(new java.awt.GridBagLayout());        setMinimumSize(new java.awt.Dimension(160, 28));        setPreferredSize(new java.awt.Dimension(160, 28));        gotoIcon.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jfreerails/client/graphics/selected_arrow.png")));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridheight = 2;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        add(gotoIcon, gridBagConstraints);        consistChangeJPanel.setLayout(new java.awt.GridBagLayout());        noChangeJLabel.setText("No Change");        consistChangeJPanel.add(noChangeJLabel, new java.awt.GridBagConstraints());        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 1;        gridBagConstraints.gridwidth = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        add(consistChangeJPanel, gridBagConstraints);        stationNameJLabel.setText("Some Station");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);        add(stationNameJLabel, gridBagConstraints);        ordersJLabel.setText("wait until full / don't wait");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 0;        gridBagConstraints.ipadx = 6;        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;        gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 5);        add(ordersJLabel, gridBagConstraints);    }//GEN-END:initComponents