private void addInfoButton(JPanel panel,Object o,String clientProp){
  JButton hButton;
  hButton=new JButton(o.toString());
  hButton.putClientProperty(clientProp,o);
  hButton.addActionListener(this);
  hButton.setFont(font);
  hButton.setMargin(new Insets(0,0,0,0));
  hButton.setBackground(LOG_BUTTON_BG);
  panel.add(hButton);
}

private void addInfoButton ( JPanel panel , Object o , String clientProp ) { JButton hButton ; hButton = new JButton ( o . toString ( ) ) ; hButton . putClientProperty ( clientProp , o ) ; hButton . addActionListener ( this ) ; hButton . setFont ( font ) ; hButton . setMargin ( new Insets ( 0 , 0 , 0 , 0 ) ) ; hButton . setBackground ( LOG_BUTTON_BG ) ; panel . add ( hButton ) ; }
adds a new button to a log entry panel and attaches a client property into it
