• 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
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

wrapping a GUI around my programming

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everybody!!!
I have a simple algorithms done but what I want to do is wrap a gui (view) around my program with javafx fxml. I already designed the gui with scene builder and now I'm trying to intergrate the view with the model and controller. Is there a hot tutorial out there that teaches this or does anybody have any suggestions?
 
Rancher
Posts: 387
30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Makery has a great tutorial. Learn from that.
 
Jaytee Simon
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply yeah I got it wrapped I'm just trying to do small things like click a button and select a text file then manipulate it in my gui
 
Marshal
Posts: 8829
631
Mac OS X VI Editor BSD Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jaytee Simon wrote:Thanks for the reply yeah I got it wrapped I'm just trying to do small things like click a button and select a text file then manipulate it in my gui

In a Scene Builder when you select the button there will be a "Code" tab on the right hand side of the screen. When you click that, you should see the line "On Action". When you place the cursor on that line, you should be able to see the public methods defined within your controller class. One more thing, on the left hand side of the screen of Scene Builder there is a tab "Controller" where you need to link your "fxml" file with "Controller" class by specifying your "package_name.ControllerClassName".
 
Jaytee Simon
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah I got the controller linked, well the root frame/controller I have linked and thanks for reminding about the menu to the right in scenebuilder...
 
I RELEASE YOU! (for now .... ) Feel free to peruse this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic