}
@Override
public void paintComponent(Graphics g) {
g.clearRect(0, 0, getWidth(), getHeight());
CanvasTool current = canvas.getTool();
for(int i = 0; i < tools.length; i++) {
AbstractTool[] column = tools[i];
int x = ICON_SEP + i * (ICON_SEP + ICON_WIDTH);
int y = ICON_SEP;
for(int j = 0; j < column.length; j++) {