title: How to get the TitledBorder's title to display properly in the GUI
body: <p>I have the GUI displaying properly for the most part, except for one thing.  The TitledBorder("Numeric Type") does not display the entire title for the right JPanel.  I believe it has something to do with the BorderLayout Manager.  Instead of displaying "Numeric Type" within the border, just "Numeric..." displays.  Any help will be greatly appreciated.  </p>
  
  <pre><code>public class P3GUI extends JFrame {
  
      private JLabel originalList;
      private JTextField originalSort;
      private JLabel sortedList;
      private JTextField newSort;
      private JPanel panel;
      private JButton performSort;
      private JRadioButton ascending;
      private JRadioButton descending;
      private ButtonGroup sort;
      private JRadioButton integer;
      private JRadioButton fraction;
      private ButtonGroup numType;
      private JPanel inputPanel, outputPanel, calculatePanel, radioPanel;
      private JPanel left, right;
  
      public P3GUI () {
          super("Binary Search Tree Sort");
          setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
          originalList = new JLabel("Original List");
          originalSort = new JTextField(20);        
          inputPanel = new JPanel();
          inputPanel.add(originalList);
          inputPanel.add(originalSort);
          sortedList = new JLabel("Sorted List");
          newSort = new JTextField(20);
          newSort.setEditable(false);
          outputPanel = new JPanel();
          outputPanel.add(sortedList);
          outputPanel.add(newSort);
          panel = new JPanel();
          panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
          panel.add(inputPanel);
          panel.add(outputPanel);
          add(panel, BorderLayout.NORTH);
          performSort = new JButton("Perform Sort");
          calculatePanel = new JPanel();
          calculatePanel.add(performSort);
          add(calculatePanel, BorderLayout.CENTER);        
          ascending = new JRadioButton("Ascending");
          descending = new JRadioButton("Descending");
          sort = new ButtonGroup();
          sort.add(ascending);
          sort.add(descending);
          integer = new JRadioButton("Integer");
          fraction = new JRadioButton("Fraction");
          numType = new ButtonGroup();
          numType.add(integer);
          numType.add(fraction);
          radioPanel = new JPanel();
          radioPanel.setLayout(new FlowLayout());
          left = new JPanel();
          left.setLayout(new GridLayout(2,1));
          left.setBorder(BorderFactory.createTitledBorder("Sort Order"));
          left.add(ascending);
          left.add(descending);
          right = new JPanel();
          right.setLayout(new GridLayout(2,1));
          right.setBorder(BorderFactory.createTitledBorder("Numeric Type"));
          right.add(integer);
          right.add(fraction);
          radioPanel.add(left);
          radioPanel.add(right);
          add(radioPanel, BorderLayout.SOUTH);        
          pack();
  
      }
      public static void main(String[] args) {
          EventQueue.invokeLater(new Runnable() {
              public void run() {
                  new P3GUI().setVisible(true);
              }
          });
      }
  
  }
  </code></pre>