"TrafficRed.gif", "Home.gif", "Print.gif", "Help.gif" };
String[] toolbarLabels =
{ "Back", "Forward", "Reload", "Stop", "Home", "Print", "Help" };
Insets margins = new Insets(0, 0, 0, 0);
for(int i=0; i<toolbarLabels.length; i++) {
ToolBarButton button =
new ToolBarButton("images/" + imageFiles[i]);
button.setToolTipText(toolbarLabels[i]);
button.setMargin(margins);
add(button);
}
}