Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to generate import tag in .fxml file?

PriorJul 16 2014 — edited Jul 17 2014

Hi,

Whenever I use a control inside an .fxml file like:

<Label></Label>, <TableView></TableView>, etcera ...

I get an exception for example:

Label is not a valid type., TableView is not a valid Type., etcera

This exception I then solve with placing an import tag inside the .fxml file.

However as I do not know each import name, I have to look this up like writing down:

Label label = new Label();

inside a class and then place my cursor on it to see which import name Eclipse generates.

This import name i then put inside the .fxml file with <? import ?> beginning and end tags with question marks around it.

Is there anyways to automatically generate these import tags inside an .fxml file even if you don't know the import name for the control you want to use?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2014
Added on Jul 16 2014
3 comments
1,584 views