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 - Graphics

JavaFX - Graphics

Description

In this activity you will use some of the built-in graphical objects provided by JavaFX to build a familiar user interface graphical component.  You will see how the grouping feature allows you to collect simple graphical objects together so they act like a single object.  You will also see a specific example of where the common profile and the desktop profile differ.  Remember, the common profile features exist on all JavaFX devices, including mobile devices, while the desktop profile provides some capabilities that are only available on more powerful desktop systems.  If you are trying to create an application specifically for mobile devices, or you want your application to run on any platform, including mobile devices, you need to restrict your code to using only the common profile.  If you are building a desktop application (including applications that may run in a desktop system's web browser), you can use the desktop profile.

In this activity, you will:

  • create a common User Interface object by combining several of the built-in graphical objects provided by JavaFX

Skills you will learn include:

  • building familiarity with the built-in graphics capabilities provided by JavaFX, which can be combined to build personalized, custom graphical objects

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 4: Creating Graphical Objects 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

Graphics

0
August 17, 2009 by thechrisj
icon

BB

0
August 14, 2009 by hqx10
icon

JavaFX Graphics

0
August 9, 2009 by dwarrior333
icon

JFX Graphics

0
August 4, 2009 by Stilenx
icon

JavaFX Graphics

0
August 17, 2009 by Oracizan
icon

Play Button

0
August 9, 2009 by zackiddy
icon

Fourth JavaFX Project

0
August 7, 2009 by tokutei12
icon

Graphic

0
July 30, 2009 by darealMVP
icon

button

0
July 9, 2009 by shadbot
More Submissions

Activity Forum

There are currently no forum topics posted.