Skip to content

Commit

Permalink
remove comment 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
madneal committed Nov 11, 2017
1 parent 97bc03b commit 78b03ef
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions ui/src/main/java/client/ClientWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.SingleSelectionModel;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
Expand All @@ -18,14 +20,15 @@ public class ClientWindow extends Application {
private Stage primaryStage;
private BorderPane rootLayout;
private TabPane mainTab;
private SingleSelectionModel<Tab> selectionModel;

@Override
public void start(Stage primaryStage) {
selectionModel = mainTab.getSelectionModel();
this.primaryStage = primaryStage;
this.primaryStage.setTitle("Search Everywhere");
initRootLayout();
showPersonOverview();
// SingleSelectionModel<Tab> selectionModel = mainTab.getSelectionModel();
showMainTab();
// selectionModel.select(0);
}

Expand All @@ -34,7 +37,6 @@ public void start(Stage primaryStage) {
*/
public void initRootLayout() {
try {
// Load root layout from fxml file.
FXMLLoader loader = new FXMLLoader();
loader.setLocation(getURL(CommonConstants.ROOT_LAYOUT_PATH));
rootLayout = (BorderPane) loader.load();
Expand All @@ -48,12 +50,8 @@ public void initRootLayout() {
}
}

/**
* Shows the person overview inside the root layout.
*/
public void showPersonOverview() {
public void showMainTab() {
try {
// Load person overview.
FXMLLoader loader = new FXMLLoader();
loader.setLocation(getURL(CommonConstants.SETTING_PATH));
AnchorPane settingView = (AnchorPane) loader.load();
Expand All @@ -63,14 +61,6 @@ public void showPersonOverview() {
}
}

/**
* Returns the main stage.
* @return
*/
public Stage getPrimaryStage() {
return primaryStage;
}

public static void main(String[] args) {
launch(args);
}
Expand Down

0 comments on commit 78b03ef

Please sign in to comment.