setBorder(new javax.swing.border.TitledBorder("Current Details")); jLabel1.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel1.setText("<html><head></head><body>Trains X: 20 passengers, 15 tons of mfg goods, 12 sacks of mail, and 7 tons of livestock.</body></html>"); jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING); jLabel1.setVerticalTextPosition(javax.swing.SwingConstants.TOP); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; add(jLabel1, gridBagConstraints);
setBorder(new javax.swing.border.TitledBorder(""));
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        jLabel1 = new javax.swing.JLabel();        trainViewJPanel1 = new jfreerails.client.view.TrainViewJPanel();        setLayout(new java.awt.GridBagLayout());        setBorder(new javax.swing.border.TitledBorder("Current Details"));        jLabel1.setFont(new java.awt.Font("Dialog", 0, 12));        jLabel1.setText("<html><head></head><body>Trains X: 20 passengers, 15 tons of mfg goods, 12 sacks of mail, and 7 tons of livestock.</body></html>");        jLabel1.setHorizontalTextPosition(javax.swing.SwingConstants.LEADING);        jLabel1.setVerticalTextPosition(javax.swing.SwingConstants.TOP);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        add(jLabel1, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.weightx = 1.0;        add(trainViewJPanel1, gridBagConstraints);    }//GEN-END:initComponents