working a bit on debug

This commit is contained in:
Ben Fry
2022-01-29 08:16:31 -05:00
parent 6a2382f6f0
commit 6ec1887eba
@@ -6,6 +6,7 @@ import java.awt.Dimension;
import processing.app.Platform;
import processing.app.Preferences;
import processing.app.ui.Editor;
import processing.app.ui.Theme;
@@ -25,12 +26,28 @@ public class SyntaxDebug extends JFrame {
add(area);
//setMinimumSize(new Dimension(500, 400));
pack();
setLocationRelativeTo(null);
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new Dimension(500, 400));
setVisible(true);
}
/*
void drawError() {
PdeTextAreaPainter painter = (PdeTextAreaPainter) area.getPainter();
int x1 = area.offsetToX(line, leftCol);
int x2 = area.offsetToX(line, rightCol);
//if (x1 == x2) x2 += fontMetrics.stringWidth(" ");
gfx.setColor(painter.errorUnderlineColor);
//gfx.setColor(painter.warningUnderlineColor);
painter.paintSquiggle(gfx, y1, x1, x2);
}
*/
static public void main(String[] args) {
new SyntaxDebug();
}