Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JavaFX
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
JavaFX
Working with a label in FXML
kd murphy
Greenhorn
Posts: 1
posted 6 months ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can anyone help me please. I can't set text nor Style a label in my fxml item. I think it's because of the arrangement of my application.
[ Main UI [ FXML Item container, loaded to main ui [ FXML Item, loaded to the fxml container ] ] ]
Lou Hamers
Bartender
Posts: 303
12
I like...
posted 6 months ago
Number of slices to send:
Optional 'thank-you' note:
Send
Sure, show us some source code and the FXML you're using. Are you using Scene Builder (recommended) or editing the FXML directly?
Probably the most common issue is injection failing. An fx:id should match the name of the annotated field in the controller.
Ex. for
@FXML private Label errorMsgLbl;
You'd need fx:id set the same:
<Label fx:id="errorMsgLbl" text="Error message" wrapText="true"/>
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Where should the logic behind the app should be placed?
Get selected item from combobox into tableview javafx
jQuery In Action Chapter 8 - use a php data file for ajax call.
I need some help understanding tableviews
NullPointerException on property binding
More...