Skip to content

Commit

Permalink
adding the tooltips of the filename
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Apr 7, 2024
1 parent d5558fc commit 5347caf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import javafx.scene.control.Tooltip;

@SuppressWarnings("unused")
public class ScriptingFileWidget extends BorderPane implements IFileChangeListener {
Expand Down Expand Up @@ -172,14 +173,16 @@ private void load(ScriptingWidgetType type, File currentFile) {
// little bit
});
});
System.err.println("\n\n\nScriptingFileWidget loading the editor loader:\n\n\n");

//System.err.println("\n\n\nScriptingFileWidget loading the editor loader:\n\n\n");
try {
externalEditorController = new ExternalEditorController(currentFile, autoRun);
}catch(Throwable t) {
t.printStackTrace();
}

Button openFile = new Button("Open");
openFile.setGraphic(AssetFactory.loadIcon("Folder.png"));
openFile.setMinWidth(80);
openFile.setOnAction(event -> {
new Thread(() -> {
Expand Down Expand Up @@ -538,9 +541,11 @@ private void setUpFile(File f) {
BowlerStudio.runLater(() -> {
// fileListBox.setMinWidth(remote.getBytes().length*10);
fileListBox.setText(remote);
fileListBox.setTooltip(new Tooltip(remote));
// fileListBox.res

fileNameBox.setText(findLocalPath);
fileNameBox.setTooltip(new Tooltip(findLocalPath));
// These values are display only, so if hte user tries to change them, they
// reset
// the use of text field for static dats is so the user cna copy the vlaues and
Expand Down

0 comments on commit 5347caf

Please sign in to comment.