FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Graph/App.java at master · infSloe/Graph · GitHub
infSloe
/
Graph
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Graph
/
App.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
35 lines (24 loc) · 908 Bytes
Breadcrumbs
Graph
/
App.java
Copy path
File metadata and controls
35 lines (24 loc) · 908 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import
javafx
.
application
.
Application
;
import
javafx
.
scene
.
Scene
;
import
javafx
.
scene
.
layout
.
BorderPane
;
import
javafx
.
stage
.
Stage
;
import
javafx
.
fxml
.
FXMLLoader
;
import
javafx
.
scene
.*;
public
class
App
extends
Application
{
@
Override
public
void
start
(
Stage
primaryStage
)
throws
Exception
{
// Darstellung als fxml-Datei
FXMLLoader
loader
=
new
FXMLLoader
(
getClass
().
getResource
(
"view.fxml"
));
Parent
root
=
loader
.
load
();
Controller
contr
=
loader
.
getController
();
contr
.
setStage
(
primaryStage
);
// Fenster erstellen und anzeigen
Scene
scene
=
new
Scene
(
root
,
800
,
600
);
scene
.
getStylesheets
().
add
(
getClass
().
getResource
(
"style.css"
).
toExternalForm
());
primaryStage
.
setScene
(
scene
);
primaryStage
.
show
();
}
public
static
void
main
(
String
[]
args
) {
launch
(
args
);
}
}
Back
|
FazBrowse Home
|
New Git URL