fix bug where color selector does not show the true current color

This commit is contained in:
Gal Sasson
2014-06-27 16:38:32 -04:00
parent b83692a8dc
commit b48a96f25a
@@ -35,29 +35,23 @@ public class ColorSelector {
{
frame = new JFrame();
frame.setBackground(Color.BLACK);
// frame.setUndecorated(true);
Box box = Box.createHorizontalBox();
box.setBackground(Color.BLACK);
selectorSlider = new ColorSelectorSlider();
selectorSlider.init();
if (!colorBox.isBW) {
selectorBox = new ColorSelectorBox();
selectorBox.init();
box.add(selectorBox);
// topBar = new SelectorTopBar(285);
}
else {
// topBar = new SelectorTopBar(30);
}
selectorSlider = new ColorSelectorSlider();
selectorSlider.init();
box.add(Box.createHorizontalGlue());
box.add(selectorSlider, BorderLayout.CENTER);
box.add(Box.createHorizontalGlue());
// topBar.init();
// frame.getContentPane().add(topBar, BorderLayout.NORTH);
frame.getContentPane().add(box, BorderLayout.CENTER);
frame.pack();
frame.setResizable(false);
@@ -68,6 +62,7 @@ public class ColorSelector {
{
frame.setLocation(x, y);
frame.setVisible(true);
frame.repaint();
}
public void hide()