[personal profile] fardell24

Digital and Interactive Games 2015 – Term 2, Week 5, Session 2
Extend Application

Today – Effects and Transformation

BoxBlur blur = new BoxBlur(1.0, 1.0, 1);

button1 = new Button(“Click Me”)l

Rotate rotate = new Rotate();

button1.setEffect(blur);

button2 = new Button(“Rotate”);
rotate.setAngle(45.0);

Label label1l
Scale scale1;

pane.getChildren().add(button1);
pane.getChildren().add(button2);
pane.getChildren().add(label1);

Scale.SetX(0.5);
Scale.SetY(3.0);
Scale.setPivot(button3, getWidth());
Label1.getTransform().add(scale);

Reflection reflection = new Reflection();

reflection.SetTopOpacity(0.7);
reflection.setBottomOpacity(0.3);



Border Example

BorderPane pane = new BorderPane();
scene1 = new Scene(pane, 500, 600);


staage,setScene(scene1)l

HBox header = new HBox();
HBox footer = new HBox();

pane.setTop(header);
pane.setBottom(footer);

header.getChildren().add(headerText);
footer.getChildren().add(footerText);

vBox leftMenu = new vBox();



This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

June 2025

S M T W T F S
12 3 4567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 6th, 2025 07:56 am
Powered by Dreamwidth Studios