FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaFX/src/malc/Main.java at master · dmpe/JavaFX · GitHub
dmpe
/
JavaFX
Public
Notifications
You must be signed in to change notification settings
Fork
96
Star
271
Code
Issues
1
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaFX
/
src
/
malc
/
Main.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (33 loc) · 1.01 KB
Breadcrumbs
JavaFX
/
src
/
malc
/
Main.java
Copy path
File metadata and controls
40 lines (33 loc) · 1.01 KB
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
36
37
38
39
40
package
malc
;
import
java
.
io
.
IOException
;
import
javafx
.
application
.
Application
;
import
javafx
.
stage
.
Stage
;
import
javafx
.
scene
.
Group
;
import
javafx
.
scene
.
Scene
;
import
javafx
.
scene
.
paint
.
Color
;
import
javafx
.
scene
.
shape
.
Ellipse
;
public
class
Main
extends
Application
{
@
Override
public
void
start
(
Stage
primaryStage
)
throws
IOException
{
Group
root
=
new
Group
();
// describes the window itself: name, size
primaryStage
.
setTitle
(
" Aufgabe 10 by John Malc "
);
primaryStage
.
setScene
(
new
Scene
(
root
));
// say: center on screen, user can resize, and it will in general exists
primaryStage
.
centerOnScreen
();
primaryStage
.
setResizable
(
true
);
primaryStage
.
show
();
// Ellipse alone
Ellipse
a
=
new
Ellipse
();
a
.
setFill
(
Color
.
RED
);
a
.
setCenterX
(
205
);
a
.
setCenterY
(
150
);
a
.
setRadiusX
(
80
);
a
.
setRadiusY
(
30
);
// shows Ellipse and it will add it to the group
root
.
getChildren
().
add
(
new
Group
(
a
));
}
public
static
void
main
(
String
[]
args
) {
launch
(
args
);
}
}
Back
|
FazBrowse Home
|
New Git URL