package application; import javafx.application.Application; import javafx.stage.Stage; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import javafx.scene.paint.Color; import javafx.scene.shape.Circle; import javafx.scene.shape.Line; import javafx.scene.shape.Polygon; import javafx.scene.shape.Rectangle; import javafx.scene.text.Font; import javafx.scene.text.Text; public class Main extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) throws Exception { Group root = new Group(); Scene scene = new Scene(root,600,600,Color.LIGHTSKYBLUE); Stage stage = new Stage(); Text text = new Text(); text.setText("WHOOOOOA!!"); text.setX(50); text.setY(50); text.setFont(Font.font("Verdana",50)); text.setFill(Color.LIMEGREEN); Line line = new Line(); line.setStartX(200); line.setStartY(200); line.setEndX(500); line.setEndY(200); line.setStrokeWidth(5); line.setStroke(Color.RED); line.setOpacity(0.5); line.setRotate(45); Rectangle rectangle = new Rectangle(); rectangle.setX(100); rectangle.setY(100); rectangle.setWidth(100); rectangle.setHeight(100); rectangle.setFill(Color.BLUE); rectangle.setStrokeWidth(5); rectangle.setStroke(Color.BLACK); Polygon triangle = new Polygon(); triangle.getPoints().setAll( 200.0,200.0, 300.0,300.0, 200.0,300.0 ); triangle.setFill(Color.YELLOW); Circle circle = new Circle(); circle.setCenterX(350); circle.setCenterY(350); circle.setRadius(50); circle.setFill(Color.ORANGE); Image image = new Image("pizza.png"); ImageView imageView = new ImageView(image); imageView.setX(400); imageView.setY(400); root.getChildren().add(text); root.getChildren().add(line); root.getChildren().add(rectangle); root.getChildren().add(triangle); root.getChildren().add(circle); root.getChildren().add(imageView); stage.setScene(scene); stage.show(); } }
@quantum76933 жыл бұрын
I loved the video Can you make a video about making a game using javaFX
@elypix27203 жыл бұрын
Your channel is underrated. I've never seen better coding tutorials than yours! PLEASE KEEP GOING!!
@xplane78793 жыл бұрын
True... i also just found him today. This channel is not only informative but also chill cool... bro...
@milo-ur8zp3 жыл бұрын
bro code please never stop uploading these videos, you are a huge help for me in my journey into coding java spigot plugins and saved my butt more than one time, thanks! :D
@hemantmishra37273 жыл бұрын
Thank you so much for all the wonderful videos..
@jordanlittle87742 жыл бұрын
just you explaining it how you did helped me a bunch
@Randomz01013 жыл бұрын
bro you're such a legend. The way you teach us java is never boring and always exciting. You are better than my teacher. I have learned so much from you. I just wanna thank you for all your hardwork. Please never ever stop teaching us java. And I hope someday I could meet you or even repay you from all of the free java vids tutorial ive watch your channel. Anyways bro I also hope you're doing well and always keep being awesome. Then Finally the day will come when we finally defeat the youtube algorithm hahahah edit: A quick question bro. Are you planning on teaching java programming for embedded systems? cause I would really love to learn from you
@salahSaad-ld8id8 ай бұрын
Thanks for this awesome video and other videos in whole list
@JoeSeefusАй бұрын
great videos, keep it up.
@larrysmusics5313 жыл бұрын
Please make tutorial on jdbc jsp servlet
@remylebeau93445 ай бұрын
Very awesome stuff!
@kienduongngo75493 жыл бұрын
Great!! I hope you make more videos
@anandomia31613 жыл бұрын
awesome
@funcoding17973 жыл бұрын
great
@stywenoider74363 жыл бұрын
amazing chanel
@bojanjanjic2899 Жыл бұрын
Interesting. Thank you!
@elionayzuridasilveira414023 күн бұрын
👏👏👏
@mehmetkeskin8118 Жыл бұрын
Thank you. we need to create 3d canvas. is it also pssible?
@ashkanshakiba95793 жыл бұрын
Useful 👌👍
@Avel_runner Жыл бұрын
Excellent info!
@gameGXT2 жыл бұрын
Super video
@gameGXT2 жыл бұрын
super vidéo
@braydenmchan Жыл бұрын
I love your idea of a sandwich but I've always thought of it as a pizza. The stage is the dough, the scene is the tomato sauce, and the scene graph would be the toppings. Great video though!
@hasibullahazimi65243 жыл бұрын
Hi dear bro please make more videos of javafx.
@catharperfect70367 ай бұрын
Sick program broski
@sciencejournal88313 жыл бұрын
I like your channel and I know that It will grow into bigger channel ❤️
@HeavyMetals19693 жыл бұрын
This is one tutorial that ranks above most. It is the setup, and the method here that works. Bro Code is solid, and is above the rest. Learn the ways of the code.
@omersond48913 жыл бұрын
i only learned swing on my oop course. nice to learn javaFX here. very nice video bro
@tomaszkarolak61793 жыл бұрын
Thumb up, great work! ... as always 😉
@rapbimsfrienda222 жыл бұрын
Great explanation 🎉
@percivalgebashe4376 Жыл бұрын
Nice
@kbkarol22123 жыл бұрын
thanks you bro please make more of these
@malekmousa10383 жыл бұрын
Can you make a video about Java streams? Please
@Welcome_to_real_life_ Жыл бұрын
Really good stuff!!
@Amangupta-rh7cy3 жыл бұрын
Thanks for making this video
@user-wn1db9fm4o3 жыл бұрын
Nice video bro
@rashakh50592 жыл бұрын
👍🏻😊😊
@ehsanmna89663 жыл бұрын
Javafx+ series pls
@stephensteve2079 Жыл бұрын
Can we print these shapes in the graphics context by calling those objects? But not using these fillRect(), fillPolygon(), etc. in a graphics context?
@SargeanTravis Жыл бұрын
Great series so far! It's bit outdated (tho that also might be me using IntelliJ Ultimate. Other than the fact that project creation works differently (and more fluently) the tutorials hold up well!
@keldur1610 ай бұрын
Same. I’m watching today and I use IntelliJ ultimate. The process to get JavaFX started up is a bit different and it’s hard to find current videos that teach it well
@ZX10RArcher3 жыл бұрын
Great tutorial!
@Fawrfuwa3 жыл бұрын
50 mins in college class = I don't get any sh!t, 15 mins watching this = I can get my assignment done. You are a God
@soda_lime70953 жыл бұрын
Can we not get a video series on java networking
@once34283 жыл бұрын
"WHOOOOA!!,nice video
@jayesh18912 жыл бұрын
This is better and more fun than University
@AleksanderWitek11 ай бұрын
Thanks for that!
@aldolunabueno26346 ай бұрын
Adding an image was a little bit different that what I thought. I didn't expect that extra step of ImageView.
@babushaikh65823 жыл бұрын
🔥🔥
@mehrsadehnavi93873 жыл бұрын
That was great! Thanks !!
@MrMaterialsman1 Жыл бұрын
thanks 👏
@wolanus3 жыл бұрын
Great video!
@xxxxx32212 жыл бұрын
Thanks a lot!
@MonsieurCake8 ай бұрын
love u bro, thanks for vid
@flyd31463 жыл бұрын
your videos are super useful! could you maybe cover some OpenGL?
@dmitryabramov14833 жыл бұрын
Это божественно!
@bendustin7609 Жыл бұрын
Thanks!
@bitcoin15323 жыл бұрын
you are a blessing
@arthurus773 жыл бұрын
wow thank's so much man
@satestactmathtutor6570 Жыл бұрын
thank u broo
@safayedbinislam3152 жыл бұрын
love you man
@zucokanarinac91333 жыл бұрын
ily
@kailan06 Жыл бұрын
What happened to Bro hes been missing? Where are you Bro?
@noah773 жыл бұрын
heyyy bro! I wanted you to make a tutorial in which there is a simple dimple square, nothing special in a new window and there's an enemy. We can move the player using W A S D and I want the enemy to follow me. Long story short - a red square (enemy) which follows you ( you are a blue Square which is a player)
@livghit3 жыл бұрын
thank you man
@muhammadtayyab9500Ай бұрын
sup
@Angie52643 жыл бұрын
hey bro, nice video. but can you please make a video about JavaFX where you explain each methods thoroughly?
@Saudkhan406 ай бұрын
Can someone please tell me, my triangle isnt showing on scene, i write same code😢
@diptoacharjee7538 Жыл бұрын
I wonder! When there was no *you. How ppl used to learn. *(KZbin and you.)
@GamingWithMalte3 жыл бұрын
early :)
@williammuller38192 жыл бұрын
BROOOOOo help meeeeee! I want to do a transparent colors for a flag in a post card we have to do for school please help me I can't find it I am very new in programming please hit me up!!!!
@cookiearu3 жыл бұрын
THANKS A LOOOT. I WAS PREPARING FOR ENDTERM AND I COULDNT DRAW TRIANGLE. IF IT WASNT FOR YOU :D
@oswallt06 Жыл бұрын
Pizza!
@-omarabusnineh51742 жыл бұрын
I have a problem when uploading the image to the code, knowing that I have placed it inside the program file
@benjaminlgur2 жыл бұрын
I had this too fixed it by doing Image image = new Image(new File("src/icon.png").toURI().toString());
@kingjulie89953 ай бұрын
@@benjaminlgur Thank you very much i had the same Problem and with that is works .i dont know what i would have done without your kommend
@solarbear97412 жыл бұрын
he told me to comment, so i did
@oguzhantopaloglu94423 жыл бұрын
text.setText("WHOOOOA"); ✔
@ctluwua76953 жыл бұрын
Pizza
@alperkandemir1192 жыл бұрын
Why do we need to create an object named Group of type root at the beginning of the code?
@Robbi9over2 жыл бұрын
The name of the object is root and the type is Group. This group is basically just a container for the drawings.
@agny3693 жыл бұрын
hey man Ive got this assignment where we need to make a circle with 3 nodes that form an internal triangle in the circle. Anyway I can pick your brain for a few questions ?
@maxjustmax5213 жыл бұрын
Hey Legend bro my IntelliSense in Eclipse is acting funny, it shows some option and never shows many others, especially when I use Swing or Java FX, any advice for fix