[RSS]

JavaFX Best Practices


Overview

Best practices demo is module to NetBeans which contains over 25 simple demos. These demos are short files in JavaFX where user could jump into the JavaFX very quickly. Demos are sorted in categories so user could select feature he wants.

Sources are available online (use raw view): NetBeans Repository

Resources for the samples: NetBeans Repository


Color

  • Color Wheel - demonstrates setting of color
  • Linear Gradient - utilizes gradients

ColorWheel.png GradientSample.png


Forms

  • Points and Lines
  • Shape Primitives - drawing of shape primitives

PointsAndLines.png ShapePrimitives.png


Game

  • Bounce - Arkanoid like game

Bounce.png


Image

  • Background Image - loading image as backgound
  • Displaying - Displaying image in different sizes
  • Transparency - takes pictures and makes it transparent

BackgroundImage.png Displaying.png Transparency.png


Input

  • Clock - Simple clock
  • Constrain - Constrains object moved by mouse
  • Easing - Easing object to current mouse location
  • Milliseconds - showing milliseconds
  • Mouse 1D - reads one mouse coordinate
  • Mouse 2D - reads both mouse coordinates
  • Mouse Press - reads mouse buttons events
  • Storing Input - shows path of mouse

Clock.png Constrain.png Easing.png Milliseconds.png Mouse1D.png Mouse2D.png MousePress.png StoringInput.png


Math

  • Arctangent -
  • Distance 1D - Computes simple distance on plane
  • Distance 2D - Compute 2D distance on plane
  • Sine - computes sine values
  • Sine Wave - Waving sine

Arctangent.png Distance1D.png Distance2D.png Sine.png SineWave.png


Motion

  • Bouncy Bubbles - ball collision
  • Linear - linear intepolation animation

BouncyBubbles.png Linear.png


Simulation

  • Flocks - flocks simulation
  • Simple Particle System - simple particle system
  • Smoke Particle System - Smoke simulation

Flocks.png SimpleParticles.png SmokeParticles.png


Transform

  • Rotate - basic rotation demo
  • Scale - basic scaling demo
  • Translate - basic translation demo

Rotate.png Scale.png Translate.png

Attachments

Arctangent.png Info on Arctangent.png 11705 bytes
BackgroundImage.png Info on BackgroundImage.png 34283 bytes
Bounce.png Info on Bounce.png 8022 bytes
BouncyBubbles.png Info on BouncyBubbles.png 10621 bytes
Clock.png Info on Clock.png 10079 bytes
ColorWheel.png Info on ColorWheel.png 19877 bytes
Constrain.png Info on Constrain.png 8329 bytes
Displaying.png Info on Displaying.png 44351 bytes
Distance1D.png Info on Distance1D.png 7694 bytes
Distance2D.png Info on Distance2D.png 11793 bytes
Easing.png Info on Easing.png 7740 bytes
Flocks.png Info on Flocks.png 9984 bytes
GradientSample.png Info on GradientSample.png 19242 bytes
Linear.png Info on Linear.png 7152 bytes
Milliseconds.png Info on Milliseconds.png 8283 bytes
Mouse1D.png Info on Mouse1D.png 7656 bytes
Mouse2D.png Info on Mouse2D.png 7615 bytes
MousePress.png Info on MousePress.png 7558 bytes
PointsAndLines.png Info on PointsAndLines.png 7665 bytes
Rotate.png Info on Rotate.png 9024 bytes
Scale.png Info on Scale.png 7221 bytes
ShapePrimitives.png Info on ShapePrimitives.png 10579 bytes
SimpleParticles.png Info on SimpleParticles.png 14564 bytes
Sine.png Info on Sine.png 9493 bytes
SineWave.png Info on SineWave.png 10888 bytes
SmokeParticles.png Info on SmokeParticles.png 13738 bytes
StoringInput.png Info on StoringInput.png 11053 bytes
Translate.png Info on Translate.png 7278 bytes
Transparency.png Info on Transparency.png 35084 bytes