You must login or register to participate.

Description

Want to learn how to create animated content for your website?

Prerequisite: prior computer programming experience is required.  If you have never done any computer programming, you should do the Learn Java Programming learning path before attempting this learning path.

To get started, JOIN THIS GROUP.  Then click on the Activity tab. Next complete each of the Activities.  And finally compete in the Challenge Activity.

Click the Details tab for more information.  Once you are done with this learning path, take a look at: Digital Graphics Lab and Building Applications for the G1 Mobile Phone.

Learning Path and Challenge Activity Provided By

Thanks to our friends on the JavaFX team at Sun Microsystems.  Sun Microsystems is our sponsor of the "Building Flashy Websites with Java FX" learning path!

JavaFX - Nodes

JavaFX - Nodes

Description

In this activity you will continue to explore JavaFX nodes, the elements that create the graphics that are displayed on the screen.  You will see how multiple nodes in a scene can be grouped together so that you can operate on them together.  This makes it easier to build up complex graphics from simpler parts, and them move them around in the scene like they are a single object.

In this activity, you will:

  • create an application containing several graphical objects
  • group the objects together so they can be treated as a single, more complex object

Skills you will learn include:

  • a deeper understanding of the JavaFX Stage/Scene/Node architecture
  • building up complex graphical objects from simpler objects, and using grouping to allow operations to be applied to the composite object

Basic Steps

  1. Open NetBeans, and create a new project.  Under the File menu, select New Project, and go through the new project wizard, creating a JavaFX project.  Remember, if you need help, use the forum!  Once you have created the project, you can make it the Main Project to make it easier to perform your edit/build/run cycle.
  2. Now go to Lesson 3: Presenting UI Objects in a Graphical Scene in the JavaFX GUI Applcation tutorial.  Go through the tasks of this lesson.
  3. Submit your project that you created to the activity.  You will submit a jar file (a java archive file) that contains your runnable program.  To find the jar file, open your project in NetBeans, and note that in the project pane, there are 3 tabs: Projects, Files, Services.  Select the Files tab.  Expand your project folder by clicking on the '+' sign.  You should see a folder called 'dist'.  Expand the dist folder, you will probably see a few files and maybe some folders.  One of the filenames should end in .jar.  This is the file that you will submit.  Open the context menu on that file (on Windows, right-click on the file; on Mac, Ctrl-click on it), and select 'properties' from the menu.  One of the properties will be the full path to where the jar file lives on your system.  Use your file browser to go get the file, and submit it.

Resource Links

Recent Submissions

icon

JavaFX Nodes

0
August 17, 2009 by Oracizan
icon

Nodes

0
August 11, 2009 by thechrisj
icon

JavaFX Nodes

0
August 9, 2009 by dwarrior333
icon

JavaFX Nodes Exploration

0
August 3, 2009 by Stilenx
icon

Nodes

0
July 9, 2009 by shadbot
icon

morenodes

0
August 14, 2009 by hqx10
icon

Nodes - Duke

0
August 9, 2009 by zackiddy
icon

Third JavaFX Project

0
August 7, 2009 by tokutei12
icon

Nodes

0
July 30, 2009 by darealMVP
icon

JavaFX-Activity 3

0
July 8, 2009 by YoniLerner
More Submissions

Activity Forum

There are currently no forum topics posted.