corefx - quick change to display session id in title bar when joined
This commit is contained in:
parent
77e8006570
commit
55e56e992f
2 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,7 @@ import com.core.utils.ConfigUtils;
|
|||
import com.core.utils.Configuration;
|
||||
import com.core.utils.NodeTypeConfig;
|
||||
import com.core.websocket.CoreWebSocket;
|
||||
import com.jfoenix.controls.JFXDecorator;
|
||||
import com.jfoenix.controls.JFXProgressBar;
|
||||
import javafx.application.Application;
|
||||
import javafx.application.Platform;
|
||||
|
@ -49,6 +50,7 @@ public class Controller implements Initializable {
|
|||
@FXML private JFXProgressBar progressBar;
|
||||
|
||||
private Application application;
|
||||
private JFXDecorator decorator;
|
||||
private Stage window;
|
||||
private Configuration configuration;
|
||||
private Map<String, Set<String>> defaultServices = new HashMap<>();
|
||||
|
@ -189,6 +191,8 @@ public class Controller implements Initializable {
|
|||
Platform.runLater(() -> bottom.getChildren().add(mobilityPlayer));
|
||||
}
|
||||
}
|
||||
|
||||
decorator.setTitle(String.format("CORE (Session %s)", sessionId));
|
||||
}
|
||||
|
||||
public boolean startSession() throws IOException {
|
||||
|
|
|
@ -56,6 +56,7 @@ public class Main extends Application {
|
|||
Controller controller = loader.getController();
|
||||
controller.setApplication(this);
|
||||
controller.setWindow(window);
|
||||
controller.setDecorator(decorator);
|
||||
|
||||
// configure window
|
||||
window.setOnCloseRequest(event -> {
|
||||
|
|
Loading…
Reference in a new issue