• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Newbie Questions

 
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once I create the GUI for Java FX, I can then write any Java code I want as an action of, say, a button, correct? JDBC, etc.

And, I could just use regular File classes and then populate a control with that output (not sure how to do that yet)?

I've also read that Java FX isn't really that popular. Wondering how useful it will be.

Thanks,

mike
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Mike London wrote:Once I create the GUI for Java FX, I can then write any Java code I want as an action of, say, a button, correct? JDBC, etc.


Sounds right.  You can setOnAction to launch anything you want.

And, I could just use regular File classes and then populate a control with that output (not sure how to do that yet)?


Not sure what you mean.  Populate a text field, for instance?

I've also read that Java FX isn't really that popular. Wondering how useful it will be.


JavaFX has had some false starts, but it's on good footing now, I believe.  It will catch on the more it's accepted.
 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Knute Snortum wrote:

Mike London wrote:Once I create the GUI for Java FX, I can then write any Java code I want as an action of, say, a button, correct? JDBC, etc.


Sounds right.  You can setOnAction to launch anything you want.

And, I could just use regular File classes and then populate a control with that output (not sure how to do that yet)?


Not sure what you mean.  Populate a text field, for instance?

I've also read that Java FX isn't really that popular. Wondering how useful it will be.


JavaFX has had some false starts, but it's on good footing now, I believe.  It will catch on the more it's accepted.



Thanks for your reply.

For the "File" question above, I was just suggesting that I could read a disk file using Java's File classes and then, when parsing the file, show the file contents in some FX screen control.

It looks like the best book out there, even for a Newbie in FX (but still Java certified) would be the Pro FX 8 book. Books have gotten expensive!

I'm impressed with Intellij's integration of FX. You can integrate the scene builder and Intellij will build (on mac) every output except exe (DMG, APP, JAR, ...). I'm thus assuming, if I were using Intelij on Windows, I could actually build an EXE. That's awesome!

Up until now, having to run just a jar file seems so out of date when apps and exes are the norm. I'm glad FX has joined the app and exe party.

Very cool.

Thanks again.

- mike
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am still reading it, but Learning JavaFX 8 looks like a great book.  I'm not sure it's good for a Java beginner, but then, JavaFX can get complicated quickly.
 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Knute Snortum wrote:I am still reading it, but Learning JavaFX 8 looks like a great book.  I'm not sure it's good for a Java beginner, but then, JavaFX can get complicated quickly.



Cool. I've been doing Java since 2002 and the FX demos I've seen all look straightforward as far as the Java code goes (e.g., Lambdas).

The one thing that I don't like so far in FX is that there is no way to just build a form the way I want it to look without getting bogged down with all the crazy layout managers. I understand that in the Swing days, there was no GUI so you had to do everything in code, so maybe layout managers made sense then. But why can't you, in 2016, just drag controls and place them exactly where you want them on the form without all the layout manager overhead/BS?

I think you'll probably reply that it's so you can still build forms in code, but there must be some way to be able to build a form simply.

I'll order that FX book.

Thanks,

-mike
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah, there doesn't seem to be an "Absolute Layout" where you can just plop a control anywhere.  But I like that with a little extra time you can create an efficient structure that can go in an FXML file or be created with relatively little code.  Have you seen the code that Netbeans creates for Swing GUIs from their form builder?  Yuck!
 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Knute Snortum wrote:Yeah, there doesn't seem to be an "Absolute Layout" where you can just plop a control anywhere.  But I like that with a little extra time you can create an efficient structure that can go in an FXML file or be created with relatively little code.  Have you seen the code that Netbeans creates for Swing GUIs from their form builder?  Yuck!



Yeah I can live with the layout managers. It will be nice to be able to create an EXE on windows or an APP on mac and be coding in Java instead of Obj-C/Swift or .NET/C#.

The "intro" FX book doesn't seem to cover the scene builder (aside from a brief mention at the beginning) at all.

How are you learning Java FX? Do you have particular projects in mind or just learning for future reference?

- mike
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have two actual projects I wrote in JavaFX.  The one that's completed is a Scrabble cheat (harumph) assistant:

https://github.com/ksnortum/scrabble-words-java

I wrote that without FXML.  I'm currently working on a project that uses JavaFX and FXML.  It's nowhere complete, but it demonstrates some cool things in JavaFX.

https://github.com/ksnortum/home-finance
 
Mike London
Bartender
Posts: 1971
17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Knute Snortum wrote:I have two actual projects I wrote in JavaFX.  The one that's completed is a Scrabble cheat (harumph) assistant:

https://github.com/ksnortum/scrabble-words-java

I wrote that without FXML.  I'm currently working on a project that uses JavaFX and FXML.  It's nowhere complete, but it demonstrates some cool things in JavaFX.

https://github.com/ksnortum/home-finance



Wow, nice.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic