diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-21 16:36:50 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-21 16:36:50 +0100 |
| commit | 8b01380800db7e3d9aa92288eeeb1e65de77558f (patch) | |
| tree | 565c1ce9c75d677ce7374313903f823cd5105ae8 /IDE/src/main/java/org/elmahrouss/CodeEditorView.java | |
| parent | dd2fee44af3db6386351d430b6105df4772ba99d (diff) | |
IDE: adding ConsoleWindow.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'IDE/src/main/java/org/elmahrouss/CodeEditorView.java')
| -rw-r--r-- | IDE/src/main/java/org/elmahrouss/CodeEditorView.java | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/IDE/src/main/java/org/elmahrouss/CodeEditorView.java b/IDE/src/main/java/org/elmahrouss/CodeEditorView.java index faac5c4..ee1422f 100644 --- a/IDE/src/main/java/org/elmahrouss/CodeEditorView.java +++ b/IDE/src/main/java/org/elmahrouss/CodeEditorView.java @@ -46,13 +46,13 @@ public class CodeEditorView extends Pane linePane = new Pane(); linePane.setStyle("-fx-background-color: #" + CodeEditorTheme.LINE_THEME); - linePane.setMinSize(52, 720); - linePane.setMaxSize(52, 1080); + linePane.setMinSize(52, AppSettings.HEIGHT); + linePane.setMaxSize(52, AppSettings.HEIGHT); this.setStyle("-fx-background-color: #" + CodeEditorTheme.BACKGROUND_THEME); - this.setMinSize(1280, 720); - this.setMaxSize(1920, 1080); + this.setMinSize(AppSettings.WIDTH, AppSettings.HEIGHT); + this.setMaxSize(AppSettings.WIDTH, AppSettings.HEIGHT); codeBox = new HBox(); @@ -60,9 +60,10 @@ public class CodeEditorView extends Pane consoleWindow = new ConsoleWindow(); codeBox.getChildren().add(consoleWindow); - codeBox.getChildren().add(codeText); } + codeBox.getChildren().add(codeText); + this.getChildren().addAll(linePane, codeBox); } @@ -83,10 +84,7 @@ public class CodeEditorView extends Pane public String getContents() { return codeText.getText(); } public void setContents(String content) - { - if (readOnly) - return; - + { this.codeText.setText(content); } |
