| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -246,7 +246,7 @@ public void paintComponent(Graphics g) { | |||
| 246 | 246 | textarea.setRightClickPopup(new TextAreaPopup()); | |
| 247 | 247 | textarea.setHorizontalOffset(JEditTextArea.leftHandGutter); | |
| 248 | 248 | ||
| 249 | - consolePanel = createConsolePanel(); | ||
| 249 | + consolePanel = createFooter(); | ||
| 250 | 250 | ||
| 251 | 251 | upper.add(textarea); | |
| 252 | 252 | ||
@@ -417,7 +417,10 @@ public void processKeyEvent(KeyEvent evt) { | |||
| 417 | 417 | } | |
| 418 | 418 | ||
| 419 | 419 | ||
| 420 | - public Container createConsolePanel() { | ||
| 420 | + public Container createFooter() { | ||
| 421 | + return new EditorConsole(this); | ||
| 422 | + | ||
| 423 | + /* | ||
| 421 | 424 | // assemble console panel, consisting of status area and the console itself | |
| 422 | 425 | JPanel panel = new JPanel(); | |
| 423 | 426 | panel.setLayout(new BorderLayout()); | |
@@ -433,6 +436,7 @@ public Container createConsolePanel() { | |||
| 433 | 436 | // lineStatus = new EditorLineStatus(this); | |
| 434 | 437 | // consolePanel.add(lineStatus, BorderLayout.SOUTH); | |
| 435 | 438 | return panel; | |
| 439 | + */ | ||
| 436 | 440 | } | |
| 437 | 441 | ||
| 438 | 442 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -137,7 +137,7 @@ public void paintComponent(Graphics g) { | |||
| 137 | 137 | ||
| 138 | 138 | ||
| 139 | 139 | public void setReverse() { | |
| 140 | - gradient = mode.getGradient("reversed", DIM, DIM); | ||
| 140 | + gradient = mode.makeGradient("reversed", DIM, DIM); | ||
| 141 | 141 | } | |
| 142 | 142 | ||
| 143 | 143 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -167,19 +167,24 @@ public void actionPerformed(ActionEvent evt) { | |||
| 167 | 167 | } | |
| 168 | 168 | } | |
| 169 | 169 | }).start(); | |
| 170 | + | ||
| 171 | + // windows puts an ugly border on this guy | ||
| 172 | + setBorder(null); | ||
| 170 | 173 | } | |
| 171 | 174 | ||
| 175 | + | ||
| 172 | 176 | public PrintStream getOut() { | |
| 173 | 177 | return sketchOut; | |
| 174 | 178 | } | |
| 175 | 179 | ||
| 180 | + | ||
| 176 | 181 | public PrintStream getErr() { | |
| 177 | 182 | return sketchErr; | |
| 178 | 183 | } | |
| 179 | 184 | ||
| 180 | 185 | ||
| 181 | - /** | ||
| 182 | - * Update the font family and sizes based on the Preferences window. | ||
| 186 | + /** | ||
| 187 | + * Update the font family and sizes based on the Preferences window. | ||
| 183 | 188 | */ | |
| 184 | 189 | protected void updateAppearance() { | |
| 185 | 190 | String fontFamily = Preferences.get("editor.font.family"); | |
@@ -190,8 +195,8 @@ protected void updateAppearance() { | |||
| 190 | 195 | StyleConstants.setFontSize(errStyle, fontSize); | |
| 191 | 196 | clear(); // otherwise we'll have mixed fonts | |
| 192 | 197 | } | |
| 193 | - | ||
| 194 | - | ||
| 198 | + | ||
| 199 | + | ||
| 195 | 200 | /** | |
| 196 | 201 | * Change coloring, fonts, etc in response to a mode change. | |
| 197 | 202 | */ | |
@@ -291,12 +296,12 @@ synchronized public void message(String what, boolean err) { | |||
| 291 | 296 | // Java on Mac OS X, but is widely reported as the source of any other | |
| 292 | 297 | // bug or problem that a user runs into. It may well be a Processing | |
| 293 | 298 | // bug, but until we know, we're suppressing the messages. | |
| 294 | - } else if (err && what.contains("Make pbuffer:")) { | ||
| 299 | + } else if (err && what.contains("Make pbuffer:")) { | ||
| 295 | 300 | // Remove initalization warning from LWJGL. | |
| 296 | 301 | } else if (err && what.contains("XInitThreads() called for concurrent")) { | |
| 297 | 302 | // "Info: XInitThreads() called for concurrent Thread support" message on Linux | |
| 298 | 303 | } else if (!err && what.contains("Listening for transport dt_socket at address")) { | |
| 299 | - // Message from the JVM about the socket launch for debug | ||
| 304 | + // Message from the JVM about the socket launch for debug | ||
| 300 | 305 | // Listening for transport dt_socket at address: 8727 | |
| 301 | 306 | } else { | |
| 302 | 307 | // Append a piece of text to the console. Swing components are NOT | |
@@ -350,7 +355,7 @@ public void write(byte b[], int offset, int length) { | |||
| 350 | 355 | currentConsole.message(new String(b, offset, length), err); | |
| 351 | 356 | } else { | |
| 352 | 357 | // If no console is present, still need to write this to the actual | |
| 353 | - // System.out or System.err. Otherwise we can't !#$!% debug anything. | ||
| 358 | + // System.out or System.err. Otherwise we can't !#$!% debug anything. | ||
| 354 | 359 | if (err) { | |
| 355 | 360 | systemErr.write(b, offset, length); | |
| 356 | 361 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments