Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Team 14 - IDATT1002
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eirik Steira
Team 14 - IDATT1002
Commits
12c1c739
Commit
12c1c739
authored
5 years ago
by
Simon Jensen
Browse files
Options
Downloads
Patches
Plain Diff
updated signup page
parent
d690097f
No related branches found
No related tags found
2 merge requests
!104
Weekly merge to Master
,
!47
updated signup page
Pipeline
#76323
passed
5 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/NTNU/IDATT1002/controllers/SignUp.java
+15
-1
15 additions, 1 deletion
src/main/java/NTNU/IDATT1002/controllers/SignUp.java
src/main/resources/NTNU/IDATT1002/signup.fxml
+33
-10
33 additions, 10 deletions
src/main/resources/NTNU/IDATT1002/signup.fxml
with
48 additions
and
11 deletions
src/main/java/NTNU/IDATT1002/controllers/SignUp.java
+
15
−
1
View file @
12c1c739
...
@@ -5,10 +5,24 @@ import java.io.IOException;
...
@@ -5,10 +5,24 @@ import java.io.IOException;
import
NTNU.IDATT1002.App
;
import
NTNU.IDATT1002.App
;
import
javafx.event.ActionEvent
;
import
javafx.event.ActionEvent
;
import
javafx.scene.control.Button
;
import
javafx.scene.control.Button
;
import
javafx.scene.control.DatePicker
;
import
javafx.scene.control.PasswordField
;
import
javafx.scene.control.TextField
;
import
javafx.scene.layout.GridPane
;
public
class
SignUp
{
public
class
SignUp
{
public
Button
signup
;
public
GridPane
signup_form
;
public
TextField
signup_firstName
;
public
TextField
signup_lastName
;
public
TextField
signup_username
;
public
TextField
signup_email
;
public
PasswordField
signup_password
;
public
TextField
signup_phoneCode
;
public
TextField
signup_phoneNr
;
public
DatePicker
signup_birthDate
;
public
Button
signup_btn
;
/**
/**
* Method that switches to login page
* Method that switches to login page
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/NTNU/IDATT1002/signup.fxml
+
33
−
10
View file @
12c1c739
...
@@ -2,41 +2,64 @@
...
@@ -2,41 +2,64 @@
<?import javafx.geometry.Insets?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<?import javafx.scene.text.Text?>
<VBox
alignment=
"CENTER"
prefHeight=
"400.0"
prefWidth=
"600.0"
spacing=
"20.0"
xmlns=
"http://javafx.com/javafx"
xmlns:fx=
"http://javafx.com/fxml/"
fx:controller=
"NTNU.IDATT1002.controllers.SignUp"
>
<VBox
alignment=
"CENTER"
prefHeight=
"400.0"
prefWidth=
"600.0"
spacing=
"20.0"
xmlns=
"http://javafx.com/javafx
/11.0.1
"
xmlns:fx=
"http://javafx.com/fxml/
1
"
fx:controller=
"NTNU.IDATT1002.controllers.SignUp"
>
<children>
<children>
<Label
text=
"Sign Up page"
/>
<Label
text=
"Sign Up page"
>
<GridPane
hgap=
"10.0"
maxWidth=
"-Infinity"
prefHeight=
"110.0"
prefWidth=
"300.0"
vgap=
"10.0"
>
<font>
<Font
size=
"14.0"
/>
</font></Label>
<GridPane
fx:id=
"signup_form"
hgap=
"10.0"
maxWidth=
"-Infinity"
prefHeight=
"229.0"
prefWidth=
"348.0"
vgap=
"10.0"
>
<columnConstraints>
<columnConstraints>
<ColumnConstraints
hgrow=
"SOMETIMES"
maxWidth=
"-Infinity"
minWidth=
"10.0"
prefWidth=
"80.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
maxWidth=
"-Infinity"
minWidth=
"10.0"
prefWidth=
"80.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
<ColumnConstraints
hgrow=
"SOMETIMES"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
</columnConstraints>
</columnConstraints>
<rowConstraints>
<rowConstraints>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
<RowConstraints
minHeight=
"10.0"
prefHeight=
"30.0"
vgrow=
"SOMETIMES"
/>
</rowConstraints>
</rowConstraints>
<children>
<children>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Username:"
GridPane.halignment=
"RIGHT"
/>
<Text
layoutX=
"37.0"
layoutY=
"110.0"
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"First name:"
textAlignment=
"RIGHT"
wrappingWidth=
"59.4921875"
GridPane.halignment=
"RIGHT"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"E-Mail:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"1"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Last name:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"1"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Password:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"2"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Username:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"2"
/>
<TextField
GridPane.columnIndex=
"1"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"E-Mail:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"3"
/>
<TextField
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"1"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Password:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"4"
/>
<PasswordField
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"2"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Phone:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"5"
/>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Birth date:"
GridPane.halignment=
"RIGHT"
GridPane.rowIndex=
"6"
/>
<TextField
fx:id=
"signup_firstName"
GridPane.columnIndex=
"1"
/>
<TextField
fx:id=
"signup_lastName"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"1"
/>
<TextField
fx:id=
"signup_username"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"2"
/>
<TextField
fx:id=
"signup_email"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"3"
/>
<PasswordField
fx:id=
"signup_password"
prefWidth=
"247.0"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"4"
/>
<HBox
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"5"
>
<children>
<TextField
fx:id=
"signup_phoneCode"
prefHeight=
"25.0"
prefWidth=
"150.0"
promptText=
"Calling code"
/>
<TextField
fx:id=
"signup_phoneNr"
prefWidth=
"242.0"
promptText=
"Phone number"
/>
</children>
</HBox>
<DatePicker
fx:id=
"signup_birthDate"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"6"
/>
</children>
</children>
<padding>
<padding>
<Insets
bottom=
"3.0"
left=
"3.0"
right=
"3.0"
top=
"3.0"
/>
<Insets
bottom=
"3.0"
left=
"3.0"
right=
"3.0"
top=
"3.0"
/>
</padding>
</padding>
</GridPane>
</GridPane>
<Button
fx:id=
"signup"
onAction=
"#switchToLogin"
text=
"Sign up"
/>
<Button
fx:id=
"signup
_btn
"
onAction=
"#switchToLogin"
prefHeight=
"26.0"
prefWidth=
"57.0"
text=
"Sign up"
/>
</children>
</children>
<padding>
<padding>
<Insets
bottom=
"20.0"
left=
"20.0"
right=
"20.0"
top=
"20.0"
/>
<Insets
bottom=
"20.0"
left=
"20.0"
right=
"20.0"
top=
"20.0"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment