| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,18 +60,18 @@ public void createFrame() | |||
| 60 | 60 | ||
| 61 | 61 | if (!colorBox.isBW) { | |
| 62 | 62 | selectorBox = new ColorSelectorBox(); | |
| 63 | - box.add(selectorBox.getCanvas()); | ||
| 63 | + box.add(selectorBox.getComponent()); | ||
| 64 | 64 | } | |
| 65 | 65 | ||
| 66 | 66 | box.add(Box.createHorizontalGlue()); | |
| 67 | - box.add(selectorSlider.getCanvas(), BorderLayout.CENTER); | ||
| 67 | + box.add(selectorSlider.getComponent(), BorderLayout.CENTER); | ||
| 68 | 68 | box.add(Box.createHorizontalGlue()); | |
| 69 | 69 | ||
| 70 | 70 | frame.getContentPane().add(box, BorderLayout.CENTER); | |
| 71 | 71 | frame.pack(); | |
| 72 | 72 | frame.setResizable(false); | |
| 73 | 73 | frame.setCursor(Cursor.getPredefinedCursor(Cursor.CROSSHAIR_CURSOR)); | |
| 74 | - | ||
| 74 | + | ||
| 75 | 75 | selectorBox.init(); | |
| 76 | 76 | selectorSlider.init(); | |
| 77 | 77 | } | |
@@ -138,9 +138,9 @@ public class ColorSelectorBox extends PApplet { | |||
| 138 | 138 | PImage backImg; | |
| 139 | 139 | ||
| 140 | 140 | public int sketchWidth() { return 255; } | |
| 141 | - | ||
| 141 | + | ||
| 142 | 142 | public int sketchHeight() { return 255; } | |
| 143 | - | ||
| 143 | + | ||
| 144 | 144 | public void setup() { | |
| 145 | 145 | noLoop(); | |
| 146 | 146 | colorMode(HSB, 255, 255, 255); | |
@@ -239,7 +239,7 @@ public Dimension getMaximumSize() { | |||
| 239 | 239 | */ | |
| 240 | 240 | } | |
| 241 | 241 | ||
| 242 | - | ||
| 242 | + | ||
| 243 | 243 | public class ColorSelectorSlider extends PApplet { | |
| 244 | 244 | PImage backImg; | |
| 245 | 245 | int lastY; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments