I can't change the ToolStripButton's icon, after adding ToolStripButton to ToolStrip.
My code:
ToolStrip toolStrip = new ToolStrip();
ToolStripButton printButton = new ToolStripButton("Print");
printButton.setIcon("print.png");
toolStrip.addButton(printButton);
printButton.setIcon("print.png");
The second setIcon call throws a Warning and doesn't set any icon:
01:14:10.638:WARN:Label:isc_ToolStripButton_0_label:setImage: image 'undefined' couldn't be found
How can I change icon?
My code:
ToolStrip toolStrip = new ToolStrip();
ToolStripButton printButton = new ToolStripButton("Print");
printButton.setIcon("print.png");
toolStrip.addButton(printButton);
printButton.setIcon("print.png");
The second setIcon call throws a Warning and doesn't set any icon:
01:14:10.638:WARN:Label:isc_ToolStripButton_0_label:setImage: image 'undefined' couldn't be found
How can I change icon?
Comment