java - What's the difference between fx:id and id: in JavaFX? -


maybe newbie's question....

i'm starting learning javafx in fmxl application using scene builder, reading tutorials:

http://docs.oracle.com/javase/8/javafx/get-started-tutorial/fxml_tutorial.htm

so once applied changes, issue 2 ids came up... might have missed or confused them...

can tell me in cases used 1 or another?

id use set css id component, example <text id="welcome-text" .../> , in stylesheet have #welcome-text { font-size: 16pt; } applied text.

fx:id use if want work components in controller class, annotate them @fxml text mywelcometext.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -