title: add JButton into frame with JTable
body: <p>I would like to know how to put a button inside a frame that contain JTable inside. (The button should not be inside a cell, but after the table ends)
  Here is the example code I wrote so far:</p>
  
  <blockquote>
    <blockquote>
      <p>class SimpleTableExample extends JFrame</p>
      
      <p>{</p>
      
      <blockquote>
        <blockquote>
          <p>// Instance attributes used in this example</p>
          
          <p>private JPanel      topPanel;</p>
          
          <p>private JTable      table;</p>
          
          <p>private JScrollPane scrollPane;
             private JButton     update_Button;</p>
        </blockquote>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <pre><code>// Constructor of main frame
  public SimpleTableExample()
  {
      // Set the frame characteristics
      setTitle("Add new item" );
      setSize(300, 200);
      setBackground( Color.gray );
  
      // Create a panel to hold all other components
      topPanel = new JPanel();
      topPanel.setLayout( new BorderLayout() );
      getContentPane().add( topPanel );
  
  
  
      // Create columns names
      String columnNames[] = {"Item Description", "Item Type", "Item Price"};
  
      // Create some data
      String dataValues[][] = {{ "0", "Entree", "0" }};
  
      // Create a new table instance
      table = new JTable( dataValues, columnNames );
  
      ////////////////////////////
  
      JComboBox item_Type_Combobox = new JComboBox();
      item_Type_Combobox = new JComboBox(item_Type.values());
      TableColumn column = table.getColumnModel().getColumn(1);
      column.setCellEditor(new DefaultCellEditor(item_Type_Combobox));
  
  
      ////////////////////////////    
  
  
  
      // Add the table to a scrolling pane
      scrollPane = new JScrollPane( table );
      topPanel.add( scrollPane, BorderLayout.CENTER );
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>How do I add button after the table I created?</p>
  
  <p>thanks in advance</p>