NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

JavaFX not working and (JavaFX vs Swing)

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
Andrew Hughes
Posted via mailing list.





PostPosted: Fri Jun 27, 2008 7:52 am    Post subject: JavaFX not working and (JavaFX vs Swing) Reply with quote

Hi All,

Firstly, I can't get JavaFX working in netbeans 6.1. I downloaded a fresh netbeans 6.1 then I downloaded+installed the appropriate JavaFX plugin(s). The JavaFX netbeans project I create won't build because it says it needs Java6 and the Java5 that ships with netbeans6 is not enough. Despite the fact there is nothing in JavaFX FAQ or anything listed anywhere that it needs Java6 and there is nothing in the netbeans website that mentions this either. Given that I now know this, I installed Java6. In an attempt to get JavaFX running on Java6, I did..

Project->Properties-> Libraries -> Manage Platforms -> and created "JavaFX SDK on Java6" and set this and the sources to the same.

But still can't tell it how to switch to Java6, it still wants to use 5. What am I missing - cheers.

--AH


ps. a random question...

I want to build up lots of reusable UI swing components, so ideally I want limited boilerplate code that links one UI object to another (such as action listeners/events button clicks eta) to not be exclusively bound to the UI components... is this something that JavaFX addresses? If I can create UI objects and then sitch and re-stich them together with JavaFX this sounds nice (from 10,000ft). I'd love to know if this is possible or not? Because swing requires a lot of boilerplate code and that normally makes the ui components not very re-usable and it also takes a lot of time to write/debug/refactor the code.
Back to top
Fabrizio Giudici
Posted via mailing list.





PostPosted: Sun Jun 29, 2008 9:10 am    Post subject: JavaFX not working and (JavaFX vs Swing) Reply with quote

It sounds that you just create the platform, but didn't tell to NB that you want to use it in your project. Did you explicitly select it in the "Project properties" panel?

For the rest, JavaFX addresses you problem by using the binding embedded in the language (bind keyword). It's very powerful and if you use the correct approach, you'll see that you can drop a lot of boilerplate code in comparison with analogous Swing applications.


On Jun 27, 2008, at 9:52 , Andrew Hughes wrote:
Quote:
Hi All,

Firstly, I can't get JavaFX working in netbeans 6.1. I downloaded a fresh netbeans 6.1 then I downloaded+installed the appropriate JavaFX plugin(s). The JavaFX netbeans project I create won't build because it says it needs Java6 and the Java5 that ships with netbeans6 is not enough. Despite the fact there is nothing in JavaFX FAQ or anything listed anywhere that it needs Java6 and there is nothing in the netbeans website that mentions this either. Given that I now know this, I installed Java6. In an attempt to get JavaFX running on Java6, I did..

Project->Properties-> Libraries -> Manage Platforms -> and created "JavaFX SDK on Java6" and set this and the sources to the same.

But still can't tell it how to switch to Java6, it still wants to use 5. What am I missing - cheers.

--AH


ps. a random question...

I want to build up lots of reusable UI swing components, so ideally I want limited boilerplate code that links one UI object to another (such as action listeners/events button clicks eta) to not be exclusively bound to the UI components... is this something that JavaFX addresses? If I can create UI objects and then sitch and re-stich them together with JavaFX this sounds nice (from 10,000ft). I'd love to know if this is possible or not? Because swing requires a lot of boilerplate code and that normally makes the ui components not very re-usable and it also takes a lot of time to write/debug/refactor the code.



-- Fabrizio Giudici, Ph.D. - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
Fabrizio.Giudici@tidalwave.it (Fabrizio.Giudici@tidalwave.it) - mobile: +39 348.150.6941
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo