mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
working a bit on debug
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user