Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt1002_2022_K1-G4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Carl Gützkow
idatt1002_2022_K1-G4
Commits
dd89e51a
Commit
dd89e51a
authored
3 years ago
by
Nicolai Hollup Brand
Browse files
Options
Downloads
Patches
Plain Diff
enhance(main...client): Changed resolution
parent
4db52afe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/edu/ntnu/idatt1002/k1g4/client/App.java
+3
-3
3 additions, 3 deletions
src/main/java/edu/ntnu/idatt1002/k1g4/client/App.java
src/main/resources/home.fxml
+49
-4
49 additions, 4 deletions
src/main/resources/home.fxml
with
52 additions
and
7 deletions
src/main/java/edu/ntnu/idatt1002/k1g4/client/App.java
+
3
−
3
View file @
dd89e51a
...
...
@@ -18,13 +18,13 @@ import java.io.IOException;
* @version 0.1
*/
public
class
App
extends
Application
{
private
static
final
int
DEFAULT_WIDTH
=
10
8
0
;
private
static
final
int
DEFAULT_HEIGHT
=
72
0
;
private
static
final
int
DEFAULT_WIDTH
=
1
6
00
;
private
static
final
int
DEFAULT_HEIGHT
=
90
0
;
@Override
public
void
start
(
Stage
stage
)
throws
IOException
{
FXMLLoader
fxmlLoader
=
new
FXMLLoader
(
App
.
class
.
getClassLoader
().
getResource
(
"home.fxml"
));
Scene
scene
=
new
Scene
(
fxmlLoader
.
load
());
Scene
scene
=
new
Scene
(
fxmlLoader
.
load
()
,
DEFAULT_WIDTH
,
DEFAULT_HEIGHT
);
stage
.
setTitle
(
"javafx"
);
stage
.
setScene
(
scene
);
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/home.fxml
+
49
−
4
View file @
dd89e51a
...
...
@@ -3,16 +3,19 @@
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<VBox
maxHeight=
"-Infinity"
maxWidth=
"-Infinity"
minHeight=
"-Infinity"
minWidth=
"-Infinity"
prefHeight=
"400.0"
prefWidth=
"600.0"
xmlns=
"http://javafx.com/javafx/17"
xmlns:fx=
"http://javafx.com/fxml/1"
>
<VBox
maxHeight=
"-Infinity"
maxWidth=
"-Infinity"
minHeight=
"-Infinity"
minWidth=
"-Infinity"
prefHeight=
"720.0"
prefWidth=
"1080.0"
xmlns=
"http://javafx.com/javafx/17"
xmlns:fx=
"http://javafx.com/fxml/1"
>
<children>
<BorderPane
prefHeight=
"200.0"
prefWidth=
"200.0"
VBox.vgrow=
"ALWAYS"
>
<top>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Floorball tournament manager"
wrappingWidth=
"
511
.9375"
BorderPane.alignment=
"CENTER"
>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Floorball tournament manager"
wrappingWidth=
"
796
.9375"
BorderPane.alignment=
"CENTER"
>
<font>
<Font
size=
"22.0"
/>
</font>
...
...
@@ -22,8 +25,50 @@
</Text>
</top>
<center>
<Button
mnemonicParsing=
"false"
prefHeight=
"128.0"
prefWidth=
"329.0"
text=
"Button"
BorderPane.alignment=
"CENTER"
/>
<GridPane
alignment=
"BOTTOM_CENTER"
prefHeight=
"598.0"
prefWidth=
"1080.0"
scaleX=
"0.8"
scaleY=
"0.8"
BorderPane.alignment=
"CENTER"
>
<columnConstraints>
<ColumnConstraints
hgrow=
"ALWAYS"
minWidth=
"10.0"
prefWidth=
"100.0"
/>
</columnConstraints>
<rowConstraints>
<RowConstraints
maxHeight=
"378.0"
minHeight=
"10.0"
prefHeight=
"242.0"
valignment=
"CENTER"
/>
<RowConstraints
maxHeight=
"624.25"
minHeight=
"10.0"
prefHeight=
"421.0"
/>
</rowConstraints>
<children>
<Button
mnemonicParsing=
"false"
prefHeight=
"242.0"
prefWidth=
"759.0"
text=
"New cup"
GridPane.halignment=
"CENTER"
GridPane.rowIndex=
"1"
GridPane.valignment=
"TOP"
>
<font>
<Font
size=
"22.0"
/>
</font>
<opaqueInsets>
<Insets
/>
</opaqueInsets>
</Button>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"No previous cups. Click "New xup" to start."
wrappingWidth=
"423.7890625"
GridPane.halignment=
"CENTER"
GridPane.valignment=
"BOTTOM"
>
<GridPane.margin>
<Insets
bottom=
"20.0"
/>
</GridPane.margin>
<font>
<Font
size=
"16.0"
/>
</font>
</Text>
</children>
</GridPane>
</center>
<bottom>
<HBox
prefHeight=
"100.0"
prefWidth=
"200.0"
BorderPane.alignment=
"CENTER"
>
<children>
<Button
mnemonicParsing=
"false"
prefHeight=
"50.0"
prefWidth=
"112.0"
text=
"Rules"
>
<opaqueInsets>
<Insets
right=
"20.0"
/>
</opaqueInsets>
</Button>
<Button
mnemonicParsing=
"false"
prefHeight=
"51.0"
prefWidth=
"105.0"
text=
"Help"
>
<opaqueInsets>
<Insets
left=
"20.0"
/>
</opaqueInsets>
</Button>
</children>
</HBox>
</bottom>
</BorderPane>
</children>
</VBox>
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