public TabButton(){
  final int size=17;
  setPreferredSize(new Dimension(size,size));
  setToolTipText("Close this tab.");
  setUI(new BasicButtonUI());
  setContentAreaFilled(false);
  setFocusable(false);
  setBorder(BorderFactory.createBevelBorder(1));
  setBorderPainted(false);
  addMouseListener(buttonMouseListener);
  setRolloverEnabled(true);
  addActionListener(this);
}

public TabButton ( ) { final int size = 17 ; setPreferredSize ( new Dimension ( size , size ) ) ; setToolTipText ( "Close this tab." ) ; setUI ( new BasicButtonUI ( ) ) ; setContentAreaFilled ( false ) ; setFocusable ( false ) ; setBorder ( BorderFactory . createBevelBorder ( 1 ) ) ; setBorderPainted ( false ) ; addMouseListener ( buttonMouseListener ) ; setRolloverEnabled ( true ) ; addActionListener ( this ) ; }
creates a new tab button object .
