|
|
@ -30,6 +30,8 @@ public class PatternBackgroundQuickPane extends BackgroundQuickPane { |
|
|
|
|
|
|
|
|
|
|
|
private int patternIndex = 0; // pattern setIndex.
|
|
|
|
private int patternIndex = 0; // pattern setIndex.
|
|
|
|
private final static int DEFAULT_DIM_HEIGHT = 210; |
|
|
|
private final static int DEFAULT_DIM_HEIGHT = 210; |
|
|
|
|
|
|
|
private final static Color DEFAULT_FOREGROUND = Color.lightGray; |
|
|
|
|
|
|
|
private final static Color DEFAULT_BACKGROUND = Color.black; |
|
|
|
private ColorSelectBox foregroundColorPane; |
|
|
|
private ColorSelectBox foregroundColorPane; |
|
|
|
private ColorSelectBox backgroundColorPane; |
|
|
|
private ColorSelectBox backgroundColorPane; |
|
|
|
private PatternButton[] patternButtonArray; |
|
|
|
private PatternButton[] patternButtonArray; |
|
|
@ -52,8 +54,8 @@ public class PatternBackgroundQuickPane extends BackgroundQuickPane { |
|
|
|
} |
|
|
|
} |
|
|
|
foregroundColorPane = new ColorSelectBox(60); |
|
|
|
foregroundColorPane = new ColorSelectBox(60); |
|
|
|
backgroundColorPane = new ColorSelectBox(60); |
|
|
|
backgroundColorPane = new ColorSelectBox(60); |
|
|
|
foregroundColorPane.setSelectObject(Color.lightGray); |
|
|
|
foregroundColorPane.setSelectObject(DEFAULT_FOREGROUND); |
|
|
|
foregroundColorPane.setSelectObject(Color.black); |
|
|
|
foregroundColorPane.setSelectObject(DEFAULT_BACKGROUND); |
|
|
|
double f = TableLayout.FILL; |
|
|
|
double f = TableLayout.FILL; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
@ -220,7 +222,7 @@ public class PatternBackgroundQuickPane extends BackgroundQuickPane { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void reset() { |
|
|
|
public void reset() { |
|
|
|
patternButtonArray[0].setSelected(true); |
|
|
|
patternButtonArray[0].setSelected(true); |
|
|
|
foregroundColorPane.setSelectObject(Color.lightGray); |
|
|
|
foregroundColorPane.setSelectObject(DEFAULT_FOREGROUND); |
|
|
|
backgroundColorPane.setSelectObject(Color.black); |
|
|
|
backgroundColorPane.setSelectObject(DEFAULT_BACKGROUND); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|