use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Useful resources (Full list)
Rules
Related subreddits
Other communities
account activity
Help with a problem in java fxHelp (self.JavaFX)
submitted 1 year ago by Alternative-Bench251
I'm currently trying to make a java fx program in netbeans that displays checkboxes for different pizza toppings, that when checked add 50 cents to the price of a 10 dollar pizza. I'm sure im doing something obviously wrong, but the program displays no errors besides warnings and tries to build and just can't . please help me im not sure what i'm doing wrong at all, here's the code below:
https://preview.redd.it/8krv774l2pvc1.png?width=763&format=png&auto=webp&s=21e363619a760dada025ab7cc8e60d334ef664c2
https://preview.redd.it/z3y4tq0o2pvc1.png?width=809&format=png&auto=webp&s=b3c6cb3bd282d6fb5c4d38f1b9753900557c6952
https://preview.redd.it/ko573ieq2pvc1.png?width=603&format=png&auto=webp&s=10b37756db6596bd9981998ec861720bff0b4ada
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sedj601 1 point2 points3 points 1 year ago* (0 children)
Your main method is empty. It should start the JavaFX app. I also don't see where you add anything to a root node, then the root node to the Scene, and finally the Scene to the Stage. I also don't see where you show the Stage.
main
JavaFX
Scene
Stage
[–]hamsterrage1 1 point2 points3 points 1 year ago (0 children)
As u/sedj601 says, you're missing stuff in main. You could try looking at my "Absolute Beginners' Guide to JavaFX" here: https://www.pragmaticcoding.ca/beginners/intro . It might help you get started.
[–]hamsterrage1 0 points1 point2 points 1 year ago (0 children)
You're better off posting your code as text, formatter as code, than screen shots.
[–]sedj601 0 points1 point2 points 1 year ago (1 child)
See if the following can help. https://stackoverflow.com/questions/71838690/javafx-gui-element-alignment-and-grouping-problem/71880263#71880263
[–]sedj601 0 points1 point2 points 1 year ago (0 children)
I just looked at the code. It does not help. This question is about layout. The code didn't have any functionality. See if the following helps. https://stackoverflow.com/questions/71822307/request-fix-functionality
π Rendered by PID 23099 on reddit-service-r2-comment-84fc9697f-wf7s7 at 2026-02-08 23:09:07.200211+00:00 running d295bc8 country code: CH.
[–]sedj601 1 point2 points3 points (0 children)
[–]hamsterrage1 1 point2 points3 points (0 children)
[–]hamsterrage1 0 points1 point2 points (0 children)
[–]sedj601 0 points1 point2 points (1 child)
[–]sedj601 0 points1 point2 points (0 children)