-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2672e4
commit 4b465ab
Showing
5 changed files
with
14 additions
and
38 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 11 additions & 4 deletions
15
src/main/java/team/elrant/bubbles/gui/HelloController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
package team.elrant.bubbles.gui; | ||
|
||
import javafx.fxml.FXML; | ||
import javafx.scene.control.Label; | ||
import javafx.scene.control.PasswordField; | ||
import javafx.scene.control.TextField; | ||
import team.elrant.bubbles.xmpp.ConnectedUser; | ||
|
||
public class HelloController { | ||
@FXML | ||
private Label welcomeText; | ||
private TextField username_field; | ||
@FXML | ||
private PasswordField password_field; | ||
|
||
@FXML | ||
protected void onHelloButtonClick() { | ||
welcomeText.setText("Welcome to JavaFX Application!"); | ||
protected void onSubmitButtonClick() { | ||
ConnectedUser user = new ConnectedUser(username_field.getText(), password_field.getText(), "elrant.team"); | ||
user.initializeConnection(); | ||
user.disconnect(); | ||
System.exit(0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
src/main/resources/team/elrant/bubbles/gui/hello-view.fxml
This file was deleted.
Oops, something went wrong.