contactSearchTab
This commit is contained in:
@ -28,6 +28,7 @@ import javafx.scene.image.Image;
|
||||
import javafx.scene.image.ImageView;
|
||||
import javafx.scene.input.KeyCode;
|
||||
import javafx.scene.input.KeyEvent;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
import javafx.scene.paint.Color;
|
||||
@ -128,6 +129,9 @@ public final class ChatScene implements Restorable {
|
||||
|
||||
@FXML
|
||||
private TabPane tabPane;
|
||||
|
||||
@FXML
|
||||
private Tab contactSearchTab;
|
||||
|
||||
private LocalDB localDB;
|
||||
private Client client;
|
||||
@ -177,14 +181,11 @@ public final class ChatScene implements Restorable {
|
||||
clip.setArcWidth(43);
|
||||
clientProfilePic.setClip(clip);
|
||||
|
||||
// FXMLLoader loader = new FXMLLoader();
|
||||
//
|
||||
// try {
|
||||
// URL url = new File("src/main/resources/fxml/Test.fxml").toURI().toURL();
|
||||
// contactOperations.getChildren().add(0, loader.load(url));
|
||||
// } catch (Exception e2) {
|
||||
// e2.printStackTrace();
|
||||
// }
|
||||
try {
|
||||
contactSearchTab.setContent(FXMLLoader.load(new File("src/main/resources/fxml/ContactSearchTab.fxml").toURI().toURL()));
|
||||
} catch (Exception e2) {
|
||||
e2.printStackTrace();
|
||||
}
|
||||
|
||||
// Listen to received messages
|
||||
eventBus.register(MessageCreationEvent.class, e -> {
|
||||
@ -393,6 +394,7 @@ public final class ChatScene implements Restorable {
|
||||
private void addContactButtonClicked() {
|
||||
// sceneContext.load(SceneContext.SceneInfo.CONTACT_SEARCH_SCENE);
|
||||
// sceneContext.<ContactSearchScene>getController().initializeData(sceneContext, localDB);
|
||||
tabPane.getSelectionModel().select(1);
|
||||
}
|
||||
|
||||
@FXML
|
||||
|
Reference in New Issue
Block a user