sliderPanel.add(opacityLabel);
sliderPanel.add(opacitySlider);
sliderPanel.setMaximumSize(new Dimension(Integer.MAX_VALUE, sliderPanel.getPreferredSize().height));
// Layer buttons
AbstractButton layerAddButton = new TButton(addLayerAction);
mapEventAdapter.addListener(layerAddButton);
JPanel layerButtons = new JPanel();
layerButtons.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.BOTH;
c.weightx = 1;
layerButtons.add(layerAddButton, c);
layerButtons.add(new TButton(moveLayerUpAction), c);
layerButtons.add(new TButton(moveLayerDownAction), c);
layerButtons.add(new TButton(cloneLayerAction), c);
layerButtons.add(new TButton(deleteLayerAction), c);
layerButtons.setMaximumSize(new Dimension(Integer.MAX_VALUE, layerButtons.getPreferredSize().height));
// tileInstancePropertiesButton = new JButton("Properties");
// tileInstancePropertiesButton.setActionCommand("tileInstanceProperties");
// mapEventAdapter.addListener(tileInstancePropertiesButton);