This commit is contained in:
benfry
2002-08-09 03:34:41 +00:00
parent eedca04990
commit f1fbe503bb
2 changed files with 20 additions and 0 deletions
+13
View File
@@ -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();
+7
View File
@@ -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