Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Chris Howell
Python Web Development Techdegree Graduate 49,703 PointsJavaFX IDE Imports
I searched around on forums for a bit last night and I couldn't seem to find this answer or maybe my keywords were specific enough. I know there has to be a way and I am sure I am not the only one that will want this for future JavaFX apps.
When building a JavaFX application, a majority of the time we are going to WANT to use the imports for javafx not java.swing. I made a few goes at trying to find under IDEA default settings for some settings options to where I could just change the PRIORITY I guess that java pulls in a list of imports? That way its always defaulting to javafx options before any other.
Does anyone know if this exists in IDEA and where those options are located?
2 Answers
Chris Howell
Python Web Development Techdegree Graduate 49,703 PointsYes and no.
The way they are doing in that link provided, they are individually excluding them. I don't really want to permanently exclude classes individually, unless it is the only way. I just want to tell IDEA that while I am working on my current JavaFX project, that I want the very first import for it too either look for or see to be a javafx.* import and stop going to java.swing first. ;)
Chris Howell
Python Web Development Techdegree Graduate 49,703 PointsChris Howell
Python Web Development Techdegree Graduate 49,703 PointsThis is actually what I was looking for. After bringing up the menu in my IDE, it opened another menu which gave MUCH more options than the example shows on the page.
Thank you.