AnsweredAssumed Answered

How to disable component of TopToolBar ?

Question asked by jon on Jun 22, 2010
Latest reply on Jul 2, 2010 by jon

Hi everybody,

 

I would like to delete the "Add contact" button of the TopToolBar...

 

I tried to get it with this code but it does not work :

 

JToolBar toptoolbar = SparkManager.getMainWindow().getTopToolBar();
 
  for( int l = 0; l < toptoolbar.getComponentCount(); l++) {
  System.out.println(l + " Components : " + toptoolbar.getComponent(l));
  }


 

Could you help me please ?

Outcomes