• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Still Looking for a more in-depth JavaFX Book

 
Ranch Hand
Posts: 234
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I have the basics on JavaFX 8 and I think it fits the bill, but I am still looking for a book with more indepth treatment of switching scene-graphs.

Here is what I want to do:

    The system has a menu of functions, all in Java 1.8 e.g. "Get list of current orders"; "Do this"; "Do that" etc
    Java goes to the cloud database via PHP and download data from mySQL, or do this and that;
    I'd like to have a nice UI to display the data in spreadsheet format and graph them;
    It seems obvious there must be multiple scenes and I have to switch JavaFX scenes.

Questions pop up in my mind:

    Show I stack the scenes?
    Show I clear the old scene off the stage and start a new scene?



A good book with examples would go a long way.

 I have read Oracle's (good primer) and am reading Pro JavaFX 9 even though I am on 8. None of them have examples and treatment on JavaFX calling Java classes.

Actually, it did cross my mind: who creates whom? But the initial login page where users put in credentials should be captured in JavaFX and passed onto a Java app?
 
Sheriff
Posts: 7041
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can only set one scene per stage, but you can hold on to a map of scenes and set them as needed.  Here is my GitHub project showing how you might do this.  I also have one demonstrating the same thing but using FXML.

Another good book on JavaFX is Learning JavaFX 8 by APress.
 
AhFai Chan
Ranch Hand
Posts: 234
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Knute Snortum

OK, understood, once scene per class except helper classes, that's busy work for a couple of weeks. I hope JavaFX is going to stick around a while, Oracle willing.

I have an important question: I notice you have your codes copyright-protected. Did you use a lawyer? What's the process? Where do I start?
 
Knute Snortum
Sheriff
Posts: 7041
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

AhFai Chan wrote: I hope JavaFX is going to stick around a while, Oracle willing.


At this point it has nothing to do with Oracle and everything to do with the Open Software community.  Or maybe I'd say, Gluon willing.

I have an important question: I notice you have your codes copyright-protected. Did you use a lawyer? What's the process? Where do I start?


This gives me a great opportunity to plug one of my favorite organizations: Creative Commons at https://creativecommons.org/share-your-work/. They make open licencing easy.
 
AhFai Chan
Ranch Hand
Posts: 234
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
opps

The trick with injecting a stage is really cool.

If you should write an indepth book on JavaFX
 
Knute Snortum
Sheriff
Posts: 7041
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There already is one (at least): Learn JavaFX 8, by Apress.  And really, there are lots of people more knowledgeable than me on the subject.
 
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
    Bookmark Topic Watch Topic
  • New Topic