private void createToolBar() {
private JToolBar createToolBar() {
    private void createToolBar() {        Icon iconMove = Resources.getIcon("gimp-tool-move-22.png");        Icon iconPaint = Resources.getIcon("gimp-tool-pencil-22.png");        Icon iconErase = Resources.getIcon("gimp-tool-eraser-22.png");        Icon iconPour = Resources.getIcon("gimp-tool-bucket-fill-22.png");        Icon iconEyed = Resources.getIcon("gimp-tool-color-picker-22.png");        Icon iconMarquee = Resources.getIcon("gimp-tool-rect-select-22.png");        Icon iconMoveObject = Resources.getIcon("gimp-tool-object-move-22.png");        paintButton = createToggleButton(iconPaint, "paint", TOOL_PAINT);        eraseButton = createToggleButton(iconErase, "erase", TOOL_ERASE);        pourButton = createToggleButton(iconPour, "pour", TOOL_FILL);        eyedButton = createToggleButton(iconEyed, "eyed", TOOL_EYE_DROPPER);        marqueeButton = createToggleButton(iconMarquee, "marquee", TOOL_SELECT);        moveButton = createToggleButton(iconMove, "move", TOOL_MOVE_LAYER);        objectMoveButton = createToggleButton(iconMoveObject, "moveobject", TOOL_MOVE_OBJECT);        mapEventAdapter.addListener(moveButton);        mapEventAdapter.addListener(paintButton);        mapEventAdapter.addListener(eraseButton);        mapEventAdapter.addListener(pourButton);        mapEventAdapter.addListener(eyedButton);        mapEventAdapter.addListener(marqueeButton);        mapEventAdapter.addListener(objectMoveButton);        JToolBar toolBar = new JToolBar(JToolBar.VERTICAL);        toolBar.setFloatable(false);        toolBar.add(moveButton);        toolBar.add(paintButton);        toolBar.add(eraseButton);        toolBar.add(pourButton);        toolBar.add(eyedButton);        toolBar.add(marqueeButton);        toolBar.add(Box.createRigidArea(new Dimension(5, 5)));        //TODO: put this back when working...        //toolBar.add(objectMoveButton);        //toolBar.add(Box.createRigidArea(new Dimension(0, 5)));        toolBar.add(new TButton(zoomInAction));        toolBar.add(new TButton(zoomOutAction));        tilePaletteButton = new TileButton(new Dimension(24, 24));        tilePaletteButton.setActionCommand("palette");        tilePaletteButton.setMaintainAspect(true);        mapEventAdapter.addListener(tilePaletteButton);        tilePaletteButton.addActionListener(this);        toolPanel = new JPanel(new BorderLayout());        toolPanel.add(toolBar, BorderLayout.NORTH);        toolPanel.add(tilePaletteButton, BorderLayout.SOUTH);    }