JavaFX stages 🎭
HTML-код
- Опубликовано: 26 июн 2024
- JavaFX stage tutorial explained
#javafx #tutorial #stage
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.input.KeyCombination;
import javafx.scene.layout.BorderPane;
import javafx.scene.paint.Color;
public class Main extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) throws Exception {
//Stage stage = new Stage();
Group root = new Group();
Scene scene = new Scene(root,Color.BLACK);
//Image icon = new Image("icon.png");
//stage.getIcons().add(icon);
//stage.setTitle("Stage Demo Program w00t w00t");
//stage.setWidth(420);
//stage.setHeight(420);
//stage.setResizable(false);
//stage.setX(50);
//stage.setY(50);
//stage.setFullScreen(true);
//stage.setFullScreenExitHint("YOU CAN'T ESCAPE unless you press q");
//stage.setFullScreenExitKeyCombination(KeyCombination.valueOf("q"));
stage.setScene(scene);
stage.show();
}
}
------------------------------
Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
Free Download / Stream: bit.ly/2JnDfCE
Music promoted by Audio Library • Up In My Jam (All Of A...
------------------------------ - Наука
If you're coding along and you are using intelliJ, make sure icon.png is in the resources sub folder of src > main. Otherwise, you'll be in for a wild safari of filepath issues.
thanks
Thank you!!!
Why tf I didn't have check the comment before? Thanks so much
Thank you
I had COVID-19 while working on videos last week, so SMASH that like button for my effort 👍
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.input.KeyCombination;
import javafx.scene.layout.BorderPane;
import javafx.scene.paint.Color;
public class Main extends Application {
public static void main(String[] args) {
launch(args);
}
@Override
public void start(Stage stage) throws Exception {
//Stage stage = new Stage();
Group root = new Group();
Scene scene = new Scene(root,Color.BLACK);
//Image icon = new Image("icon.png");
//stage.getIcons().add(icon);
//stage.setTitle("Stage Demo Program w00t w00t");
//stage.setWidth(420);
//stage.setHeight(420);
//stage.setResizable(false);
//stage.setX(50);
//stage.setY(50);
//stage.setFullScreen(true);
//stage.setFullScreenExitHint("YOU CAN'T ESCAPE unless you press q");
//stage.setFullScreenExitKeyCombination(KeyCombination.valueOf("q"));
stage.setScene(scene);
stage.show();
}
}
@@aproe610 f
I hope you get better soon!
Can u plz make a video on making a runnable jar of Java fx using eclipse. 😢
For those who can't run it, because it throws an exception with the image (intelliJ 2022.3 version):
If you click file/project stucture/modules, you can see the working directories on the right in colors. I put my image where the resourse folders points, and that's how I got is working!
Thanks :)
Thanks, you helped me a lot!
Thanks
I've been watching tutorials for a long time now. You sir, are amazing. The quality of this is Ivy league level. Thank you.
Bruh, your channel is just perfect
jeesus, it's insane how fast your channel grew from when I came in and you had less than 500 subs, huuuge respect man, and as always, indreadible content + explanation, please keep it up!!!
great work, thank you Bro! I've finished watching your 12-hour long Java tutorial, and now it's time for JavaFX, yeah!
Thanks Bro, I'm glad you're back with some new stuff!
Solid tutorial! Keep up the great work!
You a great way of explaining and teaching
Thanks for your efforts
Best tutorials out there, thanks bro!
Yooo, finished the main Java tutorial, thanks to you I'm finally thinking I can make the game I wanted to make :) You sir are a true hero!
Amazing Video,Thanks
Please Continue Making Videos
Yo broo!
I searched and searched for a biggener friendly javafx course
Yours is totally biggener friendly ,informative ,helpful, useful +(doesn't make me sleepy)
Can't thank u enough may Allah give u happiness and good health
I'm Brazilian and i loved your video, thanks!
Really cool brother. One of the best tutorials out there on JavaFX. Cheers mate.
w00t w00t! Great tutorial, thanks :)
I'm learning JavaFX for a final paper, thank you so much!
Great works 👏🏻👏🏻👏🏻
I programmed Swing for 15 years, and then two years in JavaFX.
I love JavaFX, but desktop apps seem to be dying out, so there is not much work in it.
It's a shame, because I would love to continue with this work.
hey bro so i just watched your 12 hour java video,
you really helped me a lot thank you!
also,
could u make more project videos so we can practice what we've learned?
great tutorial !
very useful content, thank you so much
i think the information you explain to me are too easy to understand. Thank you for your lesson, wish you a nice day bro!
Love it! Thanks bro. Great work.
Great tutorial, thanks!
keeeeeb going man I Like your explaning so muck
you are literally a gigachad thanks brooo ❤❤
No wonder why you have 0 dislikes truly Amazing !
what a fantastic explanation
Excellent tutorial thanks for sharing, greetings from Mexico.
gooey sandwich my favourite
Great vid bro! Even though english is my second language I understood completely your video. Your channel is such a blessing!
thnx bro, i rlly like ur vids. they r rlly helpful and i hope u will make more great content like this
If you are trying to add images in intelliJ Idea
right click on your project and add a new directory named as res
right click on res and then go to mark directory as resources
it will fix the issue
Leaving a comment because you're badass
Awsome video
you are awesome bro... please give us more javafx videos ...
Hey Bro! Thanks for your videos, I'm learning a lot with them.
YOU ARE AMAZING MAN
bro u r the best . u r excellent at giving tutorials. and please make a tutorial about grid pane ,stack pane , flow pane , adding text area and combobox .thanks
magnificent
love your videos
Shoutout to My bro , i thought i was hopless and cooding was really boring until i came a cross your channel 😁
Amazing Video!
The best teacher ever
I tried it. It works well and good.
Tks for all the info bro!
Awesome Bro!
Great !
Love your video
Great
Muito obrigado
awesome broo!!!
Useful 👌👍
For all you Beginners, If you have your textures set up in the ressources folder, just type in the path excluding the ressources folder itself. Example: i have set up my textures in a folder called Soil, wich is inside the folder textures wich is inside the folder ressources. so what i put inside the Image-constructor is this: "/textures/soil/yourimagename.png" have a nice one. dont forget this about java: its more afraid of you than you are of it. :)
Thanks, you saved me :P
THANK YOU SO MUCH
@@dolpheru2986 yw
Danke Bro, ohne dich wäre ich aufgeschmissen
@@bosniaketyp2021 fühl ich
good. thanks, it helps me a lot.
Thank you, very nice video!
This lesson is really cooler than the video in my native language
Thanks a lot!
This is helping me a lot
great
Let's gooooo !!
Superb brooo keep it up
i hope you make a lot of videos about javafx
Nice!
Thankful
Broooo, damn!
Thank you so much
thank youuuu u r amazing
Hey Bro, can you please do a video on java streams (mapping, filtering etc.),
thank you for everything .
nice videos
god bless you , thank you
Nice
Bro this is so helpful bro
super video
Bruh,
Just Fall in Love with Bro Code.
nice
Thank you very much bro
you helped me a lot :D
Good job bro 🙃
Thanks Bro!!
Gracias bro 👍
Much obliged 😘
thanks!!
Thank you
5 months ago, and there is still no dislikes... Amazing :D
gerat video as usual
super video bro
Thank you.
purrfect
Tnx Bro you help me a lot!
thanks BroChad
Another great video! Hey, I have a question. So, I saw your 4 hour video about Java GUI and now know how to create a small application. But, I don't know how to use MySQL Database to connect it to my Login and Register form. Would you please make a video about MySQL and how to use it with the Login Form? I would really appreciate it :)
Woooo 11th comment pwease pin
Thank you so much bro code, ive been wstxhing your java tutorials and landed a job at a near by website development job, im so excited akd it was all because of you. After java what language do you sugest learning?
Congrats on the job! thanks Fam, but it was you who put in the work to get there!
The language depends on the project. Mastering one language is the best, but if you work with web dev, Javascript wouldn't be a bad 2nd language.
❤️❤️
♥️♥️♥️
please do a javafx game tutorial
gg
Commenting for the algorithm 🙏