mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
usual
This commit is contained in:
@@ -5,6 +5,10 @@ import java.net.*;
|
||||
import java.util.*;
|
||||
import java.util.zip.*;
|
||||
|
||||
#ifdef JEDIT
|
||||
import org.gjt.sp.jedit.textarea;
|
||||
#endif
|
||||
|
||||
|
||||
public class PdeEditor extends Panel {
|
||||
|
||||
@@ -37,7 +41,11 @@ public class PdeEditor extends Panel {
|
||||
PdeEditorHeader header;
|
||||
PdeEditorStatus status;
|
||||
PdeEditorConsole console;
|
||||
#ifndef JEDIT
|
||||
TextArea textarea;
|
||||
#else
|
||||
JEditTextArea textarea;
|
||||
#endif
|
||||
|
||||
// currently opened program
|
||||
String userName; // user currently logged in
|
||||
@@ -100,6 +108,7 @@ public class PdeEditor extends Panel {
|
||||
rightPanel.add("North", header);
|
||||
|
||||
textarea =
|
||||
#ifndef JEDIT
|
||||
new TextArea("",
|
||||
PdeBase.getInteger("editor.program.rows", 20),
|
||||
PdeBase.getInteger("editor.program.columns", 60),
|
||||
@@ -112,6 +121,10 @@ public class PdeEditor extends Panel {
|
||||
frame.setCursor(Frame.CROSSHAIR_CURSOR);
|
||||
}
|
||||
});
|
||||
#else
|
||||
new JEditTextArea();
|
||||
#endif
|
||||
|
||||
rightPanel.add("Center", textarea);
|
||||
|
||||
Panel statusPanel = new Panel();
|
||||
|
||||
@@ -4,6 +4,13 @@ pde
|
||||
_ don't popup offscreen if editor window is way left.
|
||||
_ just make sure the x coord > 10 or so (if not presenting)
|
||||
_ don't throw exceptions for serial on startup if no serial available?
|
||||
_ as approaches 1000 lines, editorconsole has arrayindexoutof bounds
|
||||
int a;
|
||||
void loop()
|
||||
{
|
||||
a++;
|
||||
println(a);
|
||||
}
|
||||
|
||||
sketchbook
|
||||
_ organizing directories, save to other directories blows up
|
||||
|
||||
Reference in New Issue
Block a user