Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CS346
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
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Simon Wang
CS346
Commits
0e9555d7
Commit
0e9555d7
authored
2 years ago
by
Simon Wang
Browse files
Options
Downloads
Patches
Plain Diff
Added Text Area
parent
c4f58616
No related branches found
No related tags found
No related merge requests found
Pipeline
#83249
passed
2 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/src/main/kotlin/net/codebot/application/Main.kt
+16
-11
16 additions, 11 deletions
application/src/main/kotlin/net/codebot/application/Main.kt
with
16 additions
and
11 deletions
application/src/main/kotlin/net/codebot/application/Main.kt
+
16
−
11
View file @
0e9555d7
...
...
@@ -2,10 +2,7 @@ package net.codebot.application
import
javafx.application.Application
import
javafx.scene.Scene
import
javafx.scene.control.Button
import
javafx.scene.control.Label
import
javafx.scene.control.ScrollPane
import
javafx.scene.control.ToolBar
import
javafx.scene.control.*
import
javafx.scene.layout.BorderPane
import
javafx.scene.layout.HBox
import
javafx.scene.layout.StackPane
...
...
@@ -23,9 +20,17 @@ class Main : Application() {
Button
(
"Save"
)
)
val
text
=
Text
(
"Center"
)
text
.
font
=
Font
(
"Helvetica"
,
40.0
)
val
center
=
VBox
(
text
)
val
text
=
TextArea
()
text
.
isWrapText
=
true
text
.
text
=
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, "
+
"Lorem ipsum dolor sit amet, consectetur adipiscing elit."
text
.
font
=
Font
(
"Helvetica"
,
12.0
)
val
center
=
HBox
(
text
)
val
label
=
Label
(
"Test for Status Bar"
)
val
status
=
HBox
(
label
)
...
...
@@ -46,10 +51,10 @@ class Main : Application() {
150.0)
**/
val
scene
=
Scene
(
border
)
stage
.
width
=
250.0
stage
.
height
=
1
50.0
stage
.
isResizable
=
false
stage
.
title
=
"
GUI Project
"
stage
.
isResizable
=
true
stage
.
width
=
7
50.0
stage
.
height
=
450.0
stage
.
title
=
"
Markdown Editor
"
stage
.
scene
=
scene
stage
.
show
()
}
...
...
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