running the twitterfx project in netbeans

  4 posts   Feedicon  
Replies: 3 - Last Post: April 30, 2009 11:26
by: sherod
« Older Topic » Newer Topic
showing 1 - 4 of 4
 
Posted: January 29, 2009 05:37 by mdanese
cool project. I have been looking for just such - some non-trivial example of javafx capabilities. thx for publishing the awesome code.

I have made it pretty far running the src in netbeans, tho it was not easy to download the individual source files (no zip file available?)
I have a couple runtime issues, not actual bugz so...
First, in source file: TwitterConfig.fx a properties file is referenced:"Main.bs.getCodeBase()}twitterfx.properties". Can you make this properties file(or similar exampe) available along side the other sources?.
Second, I get a serious compiler warning, "Illegal forward reference: variable switchPage might not have been initialized". This is regarding source in WelcomePanel.fx , at: content: [ loginButton, switchPage] }, license, axailis, bluebird, jOrtho]. The same warning occurs in Main.fx for 'sendTweetPanel'.
I know it's just a warning, not an error, but the login dialog seems to be disabled when the app starts, which might be related?
 
Posted: January 29, 2009 05:56 by sherod
Thanks!

Keep in mind I'm learning too, so some of the code may not be best practice as I figure things out!

The best way to get the project is to check it out from Subversion in Netbeans, that way the whole thing will get sucked down by Netbeans and you won't need to download it file by file.

I haven't created a standalone version of the source code and at this stage I probably won't until I get some kind of continuous integration solution running with Hudson. I'm not sure when that will be.

Regarding the twitterfx.properties file will be created once the application starts up, and it will be stored in the special repository that WebStart maintains. There is nothing in the file that is needed at application startup.

The file format is a properties file of name value pairs, you can see the code that uses it in TwitterConfig.fx

If you aren't running the app as a WebStart application you will be encountering errors as it has a hard dependancy on some services only available via WebStart? You can change that in the Run configuration for the project in Netbeans. By default I think it simply runs as a stand alone app.

Regarding the compiler warnings, I get them too and I've played with resolving them, I seem to have a circular reference - but it seems to have no ill effects. It's something I need to look at.

Best of luck, and keep asking questions! (And update your source regularly, it changes pretty much daily)

You can also follow me on Twitter @sherod
 
Posted: April 19, 2009 23:39 by Chris_Quenelle
I tried checking out the main subversion repo using the netbeans "versioning" menu.
When I try to load the 'twitterfx' project it says "lucene-core-2.4.1.jar" is unresolved.
I'm using the NB6.5.1/JavaFX bundle from the JavaFX site.
NB told me there were multiple projects when I pulled down the main repo.
Am I supposed to load all the projects? Or just twitterfx?
(Now that Ilook, I can't see where those other projects are....)

--chris
 
Posted: April 30, 2009 11:26 by sherod
Hi Chris.

I've got to get better at following these forums!

It's a missing JAR I haven't added to SVN, my mistake.

I've added it now, and committed the latest version, let me know if that works!

There is only one project, so don't worry about that.

Also, Netbeans support of JavaFX support is a bit immature, take some of its warnings/errors with a grain of salt, particularly any syntax error highlighting when editing

Tor Norbye has a good summary of its quirks..

http://blogs.sun.com/tor/date/20090429
Replies: 3 - Last Post: April 30, 2009 11:26
by: sherod
« Older Topic » Newer Topic
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close