JavaFX FlashCard Source Code and Web Start Link

This is the post I promised that contains a link to the source code for the FlashCard game. There is also a Web Start Launcher link so you can see what my “masterpiece” looks like for yourself.

Some things that I need to work on:

1. Commenting - only parts are commented and though the variable names are pretty self explanatory, it could use some better commenting so that a write-up does not need to accompany it.

2. Layout - I used a couple Box layouts and I’m beginning to think that I should have just gone straight to the old GridBag. I haven’t spent much time figuring out how to space the components yet, but it isn’t spaced the way I’d like it to be.

3. Integrate with Pojo’s - I’d like to use some properties files and a few plain old Java classes to read in the properties and set up the array of flashcards. Currently the array is hardcoded into the FlashApp file.

4. Sound - I want to add sound to the letters, and sound to the images so that when they are clicked on, the letter sound plays or the word sound plays. I downloaded a package to let me integrate sound, but I haven’t gotten to it yet.

If you are interested in the current code, you can find it here.

If you want to see the game in action and you have Java 1.5+ installed, click here to launch Java Web Start and the FlashCard game. No need to tell me how awful my artwork is, my daughters already let me know.

Please let me know if you find it interesting or have comments on anything I may have done blatantly wrong, this was my first attempt at a JavaFX application so I am interested in feedback.

Share/Save/Bookmark

Related posts:

  1. Adding Sound to the FlashCard JavaFX Game I finally had a small amount of time to look...
  2. JavaFX Example - FlashCard Game Note: An updated version of the source code for JavaFX...
  3. JavaFX Flashcard Example Updated for 1.1 I have updated the sourcecode for my JavaFX flashcard game...
  4. Create and Deploy a JavaFX WebStart Application I realized when I updated my FlashCard JFX game that...
  5. Learning JavaFX This is my week off.  I had a nice little...

3 comments

  1. martebk Jun 15

    Hi.

    I’m quite new to javafx (and webstart), and I find your blog very useful. Do you think that you can post the jnlp-file as well in your zip-file? :) I have trouble figuring out how to make a javafx-application run with webstart

    with regards,
    Marte, Norway

  2. Robert Nocera Jun 15

    Marte,

    I’m very glad to hear you find the blog useful!

    The jnlp file is the link in the article that you would click on to run the application. If you want to see the jnlp file, right click on the link and cboose “Save Link As” (in Firefox anyway), then save it to your hard drive.

    -Rob

  1. Adding Sound to the FlashCard JavaFX Game | Java Hair

Leave a reply

You must be logged in to post a comment.