+4  A: 

You need to create a panel with the button that you want like this.

  JPanel panel = new JPanel();
  panel.add(crime);
  tab.addTab("Input", null, panel, "Input");

That should put the button in the tabpane.

Vincent Ramdhanie
awesome, thanks!
Karen
actually, when I did that, it also appeared in the Display tab. I only want it in the Input tab..
Karen
The display tab will need its own panel. Make sure you are not adding the same panel to both tabs.
Vincent Ramdhanie
Oh, when I left the panel as null for display, they both had the same thing, but when I created an empty panel and put it in the display tab, it was empty. Thanks a lot :)
Karen