File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
java/src/processing/mode/java/tweak Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,18 @@ public void createFrame()
6060
6161 if (!colorBox .isBW ) {
6262 selectorBox = new ColorSelectorBox ();
63- box .add (selectorBox .getCanvas ());
63+ box .add (selectorBox .getComponent ());
6464 }
6565
6666 box .add (Box .createHorizontalGlue ());
67- box .add (selectorSlider .getCanvas (), BorderLayout .CENTER );
67+ box .add (selectorSlider .getComponent (), BorderLayout .CENTER );
6868 box .add (Box .createHorizontalGlue ());
6969
7070 frame .getContentPane ().add (box , BorderLayout .CENTER );
7171 frame .pack ();
7272 frame .setResizable (false );
7373 frame .setCursor (Cursor .getPredefinedCursor (Cursor .CROSSHAIR_CURSOR ));
74-
74+
7575 selectorBox .init ();
7676 selectorSlider .init ();
7777 }
@@ -138,9 +138,9 @@ public class ColorSelectorBox extends PApplet {
138138 PImage backImg ;
139139
140140 public int sketchWidth () { return 255 ; }
141-
141+
142142 public int sketchHeight () { return 255 ; }
143-
143+
144144 public void setup () {
145145 noLoop ();
146146 colorMode (HSB , 255 , 255 , 255 );
@@ -239,7 +239,7 @@ public Dimension getMaximumSize() {
239239 */
240240 }
241241
242-
242+
243243 public class ColorSelectorSlider extends PApplet {
244244 PImage backImg ;
245245 int lastY ;
You can’t perform that action at this time.
0 commit comments