JavaFX scenes + drawing stuff 🌄

  Рет қаралды 82,012

Bro Code

Bro Code

Күн бұрын

Пікірлер: 84
@BroCodez
@BroCodez 3 жыл бұрын
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(); } }
@quantum7693
@quantum7693 3 жыл бұрын
I loved the video Can you make a video about making a game using javaFX
@elypix2720
@elypix2720 3 жыл бұрын
Your channel is underrated. I've never seen better coding tutorials than yours! PLEASE KEEP GOING!!
@xplane7879
@xplane7879 3 жыл бұрын
True... i also just found him today. This channel is not only informative but also chill cool... bro...
@milo-ur8zp
@milo-ur8zp 3 жыл бұрын
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
@hemantmishra3727
@hemantmishra3727 3 жыл бұрын
Thank you so much for all the wonderful videos..
@jordanlittle8774
@jordanlittle8774 2 жыл бұрын
just you explaining it how you did helped me a bunch
@Randomz0101
@Randomz0101 3 жыл бұрын
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-ld8id
@salahSaad-ld8id 8 ай бұрын
Thanks for this awesome video and other videos in whole list
@JoeSeefus
@JoeSeefus Ай бұрын
great videos, keep it up.
@larrysmusics531
@larrysmusics531 3 жыл бұрын
Please make tutorial on jdbc jsp servlet
@remylebeau9344
@remylebeau9344 5 ай бұрын
Very awesome stuff!
@kienduongngo7549
@kienduongngo7549 3 жыл бұрын
Great!! I hope you make more videos
@anandomia3161
@anandomia3161 3 жыл бұрын
awesome
@funcoding1797
@funcoding1797 3 жыл бұрын
great
@stywenoider7436
@stywenoider7436 3 жыл бұрын
amazing chanel
@bojanjanjic2899
@bojanjanjic2899 Жыл бұрын
Interesting. Thank you!
@elionayzuridasilveira4140
@elionayzuridasilveira4140 23 күн бұрын
👏👏👏
@mehmetkeskin8118
@mehmetkeskin8118 Жыл бұрын
Thank you. we need to create 3d canvas. is it also pssible?
@ashkanshakiba9579
@ashkanshakiba9579 3 жыл бұрын
Useful 👌👍
@Avel_runner
@Avel_runner Жыл бұрын
Excellent info!
@gameGXT
@gameGXT 2 жыл бұрын
Super video
@gameGXT
@gameGXT 2 жыл бұрын
super vidéo
@braydenmchan
@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!
@hasibullahazimi6524
@hasibullahazimi6524 3 жыл бұрын
Hi dear bro please make more videos of javafx.
@catharperfect7036
@catharperfect7036 7 ай бұрын
Sick program broski
@sciencejournal8831
@sciencejournal8831 3 жыл бұрын
I like your channel and I know that It will grow into bigger channel ❤️
@HeavyMetals1969
@HeavyMetals1969 3 жыл бұрын
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.
@omersond4891
@omersond4891 3 жыл бұрын
i only learned swing on my oop course. nice to learn javaFX here. very nice video bro
@tomaszkarolak6179
@tomaszkarolak6179 3 жыл бұрын
Thumb up, great work! ... as always 😉
@rapbimsfrienda22
@rapbimsfrienda22 2 жыл бұрын
Great explanation 🎉
@percivalgebashe4376
@percivalgebashe4376 Жыл бұрын
Nice
@kbkarol2212
@kbkarol2212 3 жыл бұрын
thanks you bro please make more of these
@malekmousa1038
@malekmousa1038 3 жыл бұрын
Can you make a video about Java streams? Please
@Welcome_to_real_life_
@Welcome_to_real_life_ Жыл бұрын
Really good stuff!!
@Amangupta-rh7cy
@Amangupta-rh7cy 3 жыл бұрын
Thanks for making this video
@user-wn1db9fm4o
@user-wn1db9fm4o 3 жыл бұрын
Nice video bro
@rashakh5059
@rashakh5059 2 жыл бұрын
👍🏻😊😊
@ehsanmna8966
@ehsanmna8966 3 жыл бұрын
Javafx+ series pls
@stephensteve2079
@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
@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!
@keldur16
@keldur16 10 ай бұрын
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
@ZX10RArcher
@ZX10RArcher 3 жыл бұрын
Great tutorial!
@Fawrfuwa
@Fawrfuwa 3 жыл бұрын
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_lime7095
@soda_lime7095 3 жыл бұрын
Can we not get a video series on java networking
@once3428
@once3428 3 жыл бұрын
"WHOOOOA!!,nice video
@jayesh1891
@jayesh1891 2 жыл бұрын
This is better and more fun than University
@AleksanderWitek
@AleksanderWitek 11 ай бұрын
Thanks for that!
@aldolunabueno2634
@aldolunabueno2634 6 ай бұрын
Adding an image was a little bit different that what I thought. I didn't expect that extra step of ImageView.
@babushaikh6582
@babushaikh6582 3 жыл бұрын
🔥🔥
@mehrsadehnavi9387
@mehrsadehnavi9387 3 жыл бұрын
That was great! Thanks !!
@MrMaterialsman1
@MrMaterialsman1 Жыл бұрын
thanks 👏
@wolanus
@wolanus 3 жыл бұрын
Great video!
@xxxxx3221
@xxxxx3221 2 жыл бұрын
Thanks a lot!
@MonsieurCake
@MonsieurCake 8 ай бұрын
love u bro, thanks for vid
@flyd3146
@flyd3146 3 жыл бұрын
your videos are super useful! could you maybe cover some OpenGL?
@dmitryabramov1483
@dmitryabramov1483 3 жыл бұрын
Это божественно!
@bendustin7609
@bendustin7609 Жыл бұрын
Thanks!
@bitcoin1532
@bitcoin1532 3 жыл бұрын
you are a blessing
@arthurus77
@arthurus77 3 жыл бұрын
wow thank's so much man
@satestactmathtutor6570
@satestactmathtutor6570 Жыл бұрын
thank u broo
@safayedbinislam315
@safayedbinislam315 2 жыл бұрын
love you man
@zucokanarinac9133
@zucokanarinac9133 3 жыл бұрын
ily
@kailan06
@kailan06 Жыл бұрын
What happened to Bro hes been missing? Where are you Bro?
@noah77
@noah77 3 жыл бұрын
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)
@livghit
@livghit 3 жыл бұрын
thank you man
@muhammadtayyab9500
@muhammadtayyab9500 Ай бұрын
sup
@Angie5264
@Angie5264 3 жыл бұрын
hey bro, nice video. but can you please make a video about JavaFX where you explain each methods thoroughly?
@Saudkhan40
@Saudkhan40 6 ай бұрын
Can someone please tell me, my triangle isnt showing on scene, i write same code😢
@diptoacharjee7538
@diptoacharjee7538 Жыл бұрын
I wonder! When there was no *you. How ppl used to learn. *(KZbin and you.)
@GamingWithMalte
@GamingWithMalte 3 жыл бұрын
early :)
@williammuller3819
@williammuller3819 2 жыл бұрын
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!!!!
@cookiearu
@cookiearu 3 жыл бұрын
THANKS A LOOOT. I WAS PREPARING FOR ENDTERM AND I COULDNT DRAW TRIANGLE. IF IT WASNT FOR YOU :D
@oswallt06
@oswallt06 Жыл бұрын
Pizza!
@-omarabusnineh5174
@-omarabusnineh5174 2 жыл бұрын
I have a problem when uploading the image to the code, knowing that I have placed it inside the program file
@benjaminlgur
@benjaminlgur 2 жыл бұрын
I had this too fixed it by doing Image image = new Image(new File("src/icon.png").toURI().toString());
@kingjulie8995
@kingjulie8995 3 ай бұрын
@@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
@solarbear9741
@solarbear9741 2 жыл бұрын
he told me to comment, so i did
@oguzhantopaloglu9442
@oguzhantopaloglu9442 3 жыл бұрын
text.setText("WHOOOOA"); ✔
@ctluwua7695
@ctluwua7695 3 жыл бұрын
Pizza
@alperkandemir119
@alperkandemir119 2 жыл бұрын
Why do we need to create an object named Group of type root at the beginning of the code?
@Robbi9over
@Robbi9over 2 жыл бұрын
The name of the object is root and the type is Group. This group is basically just a container for the drawings.
@agny369
@agny369 3 жыл бұрын
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 ?
@maxjustmax521
@maxjustmax521 3 жыл бұрын
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
JavaFX install Scene Builder 🛠️
10:14
Bro Code
Рет қаралды 106 М.
JavaFX stages 🎭
13:49
Bro Code
Рет қаралды 123 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 54 МЛН
Motorbike Smashes Into Porsche! 😱
00:15
Caters Clips
Рет қаралды 22 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 30 МЛН
Java 2D graphics 🖍️
20:12
Bro Code
Рет қаралды 154 М.
JavaFX switch scenes 💞
8:35
Bro Code
Рет қаралды 171 М.
The Vim Experience
45:19
Bog
Рет қаралды 142 М.
Learn How to Use JavaFX Multiple Controllers and FXML Files
8:36
Java 2D animation 🎞️
17:17
Bro Code
Рет қаралды 108 М.
The Java Memory Model - The Basics
23:41
Jakob Jenkov
Рет қаралды 131 М.
Java threads 🧵
16:01
Bro Code
Рет қаралды 118 М.
Code Flappy Bird in Java
54:02
Kenny Yip Coding
Рет қаралды 145 М.
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 54 МЛН