mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
adding class to debug editor scaling issues
This commit is contained in:
37
app/src/processing/app/syntax/SyntaxDebug.java
Normal file
37
app/src/processing/app/syntax/SyntaxDebug.java
Normal file
@@ -0,0 +1,37 @@
|
||||
package processing.app.syntax;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.WindowConstants;
|
||||
import java.awt.Dimension;
|
||||
|
||||
import processing.app.Platform;
|
||||
import processing.app.Preferences;
|
||||
import processing.app.ui.Theme;
|
||||
|
||||
|
||||
public class SyntaxDebug extends JFrame {
|
||||
JEditTextArea area;
|
||||
|
||||
public SyntaxDebug() {
|
||||
Platform.init();
|
||||
Preferences.init();
|
||||
Theme.init();
|
||||
|
||||
area = new JEditTextArea(new PdeTextAreaDefaults(),
|
||||
new PdeInputHandler(null));
|
||||
|
||||
area.setText("abcdefghijklmnopqrstuvwxyz0123456789");
|
||||
|
||||
add(area);
|
||||
//setMinimumSize(new Dimension(500, 400));
|
||||
pack();
|
||||
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||
setMinimumSize(new Dimension(500, 400));
|
||||
setVisible(true);
|
||||
}
|
||||
|
||||
|
||||
static public void main(String[] args) {
|
||||
new SyntaxDebug();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user