public void addPreferencesButton(){
  JButton prefsButton=new JButton("Prefs");
  prefsButton.setHideActionText(true);
  prefsButton.setAction(RasterPlotActions.getPropertiesDialogAction(this));
  buttonPanel.add(prefsButton);
}

public void addPreferencesButton ( ) { JButton prefsButton = new JButton ( "Prefs" ) ; prefsButton . setHideActionText ( true ) ; prefsButton . setAction ( RasterPlotActions . getPropertiesDialogAction ( this ) ) ; buttonPanel . add ( prefsButton ) ; }
add button for showing preferences .
