Adding a button to the toolbar

Hi!

I’m writing an extension for VASL. I’ve been able to add a button to the main toolbar with:


b_Test = new JButton(“test”);
b_Test.setToolTipText(“test”);
b_Test.setAlignmentY(0.0F);
b_Test.addActionListener(new Listener_Test());
gameModule.getToolBar().add(b_Test);

but I’ve not found how to add a (custom) Icon to the button. It’s possible?

Thanks,
Federico

Resolved!

Thanks