mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
20 lines
352 B
Java
20 lines
352 B
Java
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);
|
|
}
|
|
}
|