mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
forgot to add lots of things for the new version
This commit is contained in:
19
processing/app/PdeEditorLabel.java
Normal file
19
processing/app/PdeEditorLabel.java
Normal file
@@ -0,0 +1,19 @@
|
||||
import java.awt.*;
|
||||
|
||||
|
||||
public class PdeEditorLabel extends Label {
|
||||
int rows;
|
||||
|
||||
public PdeEditorLabel(int rows) {
|
||||
super(""); //pde editor label");
|
||||
setRows(rows);
|
||||
}
|
||||
|
||||
public void setRows(int rows) {
|
||||
this.rows = rows;
|
||||
}
|
||||
|
||||
public Dimension getPreferredSize() {
|
||||
return new Dimension(200, rows * PdeEditorButtons.BUTTON_HEIGHT);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user