Results 1 to 8 of 8
- 11-25-2012, 08:07 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 24
- Rep Power
- 0
how to convert a java project into a javafx project?
i have an existing java swing app/gui. i want to add some javafx functionality to the said project. things like JFXPanels and so on... when i try to add a JFXPanel, i get errors and the code doesn't work. what i am asking is; should i restart with a dedicated javafx project and copy/paste code? can i do that quite easily?
thanks!
- 11-26-2012, 02:39 AM #2
Re: how to convert a java project into a javafx project?
Since a 'project' is a feature of certain IDEs and not of the Java language or platform, I have to ask whether this question is about programming or about a specific IDE.
JavaFX 2 *is* a Java API. JavaFX 2 code *is* Java code.
Be specific. What errors? What are the error messages? We're not mind readers here.when i try to add a JFXPanel, i get errors
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 11-26-2012, 06:45 PM #3
Member
- Join Date
- Mar 2012
- Posts
- 24
- Rep Power
- 0
Re: how to convert a java project into a javafx project?
hi,
i am using netbeans 7.2.1 and the jdk 7 update 9. i have ben trying javaFX scene builder 1.0, too. that creates FXML files/classes. do javaFX programs only utilize one FX main class and all other classes are standard java classes?
the errors... if i type this:
JFXPanel testPanel = new JFXPanel();
well, then i get the entered text underlined in red and a cannot-find-symbol error. i have tried changing settings on the Java Platform Manager, but, to no avail. on the JavaFx tab, what should be in the JavaFX Sources field? i have this:
Program Files\Java\jdk1.7.0_09
on a dedicated JavaFX program, everything is ok and all works fine. so, how do i combine Java and JavaFX in one program? i need to adjust libraries and/or JARs?
thank you
- 11-26-2012, 08:05 PM #4
Re: how to convert a java project into a javafx project?
So this is a NetBeans question rather than a JavaFX question.
Project -> Properties -> Libraries -> Add Library -> Java FX 2 Runtime for Windows
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 11-26-2012, 08:06 PM #5
Re: how to convert a java project into a javafx project?
Moved from JavaFX
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 11-26-2012, 10:17 PM #6
Member
- Join Date
- Mar 2012
- Posts
- 24
- Rep Power
- 0
Re: how to convert a java project into a javafx project?
hello,
thanks for your reply. i can't find the Java FX 2 Runtime for Windows library in the libraries window. it has everything but what i am looking for... could it have a different title?
however, i started a new dedicated JavaFX project and the JFXPanel workls fine in that. so it's best to just use all-out JavaFX projrects?
thanks
- 11-27-2012, 05:00 AM #7
- 11-27-2012, 10:16 AM #8
Member
- Join Date
- Mar 2012
- Posts
- 24
- Rep Power
- 0
Re: how to convert a java project into a javafx project?
Hi,
i did try the Add Library button but no JavaFX Runtime options were available.
well, i have got it working now... i added the jfxrt.jar in my c: drive java folder to the project libraries compile tab - and it works! would you recommend adding any other similar jars to the project?
ok :)
Similar Threads
-
Creating a project in eclipse from existing project
By Suraiya in forum New To JavaReplies: 1Last Post: 10-08-2011, 09:14 AM -
How to convert from Ant project to maven project?
By jiapei100 in forum New To JavaReplies: 0Last Post: 06-08-2011, 10:01 AM -
Convert project from JRE1.6 to 1.5
By PLM_Admin in forum EclipseReplies: 0Last Post: 01-12-2011, 09:07 PM -
convert please...to finish project
By syedabu in forum Web FrameworksReplies: 1Last Post: 02-24-2010, 07:17 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks