Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit a90ec71

Browse files
authored
Merge pull request #42 from xLPMG/new-acc
passwordfield
2 parents aa2e13f + 7cd469f commit a90ec71

File tree

7 files changed

+4
-3
lines changed

7 files changed

+4
-3
lines changed
0 Bytes
Binary file not shown.
2.83 KB
Binary file not shown.
7.01 KB
Binary file not shown.
0 Bytes
Binary file not shown.
306 Bytes
Binary file not shown.

src/main/java/fsu/grumbach_hofmann/emailclientgui/application/NewAccountSceneController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private void initTextFieldArrayList() {
7272
@FXML
7373
void addAccount(ActionEvent event) {
7474

75-
if (!checkMandatoryFields(textFieldArrayList) || isPortCorrect(newAccInboxPortTextField.getText())) {
75+
if (!checkMandatoryFields(textFieldArrayList) || !isPortCorrect(newAccInboxPortTextField.getText())) {
7676
return;
7777
}
7878

src/main/resources/view/NewAccountScene.fxml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<?import javafx.scene.control.Button?>
66
<?import javafx.scene.control.Label?>
77
<?import javafx.scene.control.TextField?>
8+
<?import javafx.scene.control.PasswordField?>
89
<?import javafx.scene.layout.HBox?>
910
<?import javafx.scene.layout.VBox?>
1011
<?import javafx.scene.text.Font?>
@@ -92,12 +93,12 @@
9293
<Font size="20.0" />
9394
</font>
9495
</Label>
95-
<TextField fx:id="newAccPasswordTextField" HBox.hgrow="ALWAYS">
96+
<PasswordField fx:id="newAccPasswordTextField" HBox.hgrow="ALWAYS">
9697
<styleClass>
9798
<String fx:value="secondarySystemBackground" />
9899
<String fx:value="primarylabel" />
99100
</styleClass>
100-
</TextField>
101+
</PasswordField>
101102
</children>
102103
<VBox.margin>
103104
<Insets bottom="5.0" top="5.0" />

0 commit comments

Comments
 (0)