JavaFXBestPractices
JavaFX Best Practices
Contents |
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
Forms
- Points and Lines
- Shape Primitives - drawing of shape primitives
Game
- Bounce - Arkanoid like game
Image
- Background Image - loading image as backgound
- Displaying - Displaying image in different sizes
- Transparency - takes pictures and makes it transparent
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
Math
- Arctangent -
- Distance 1D - Computes simple distance on plane
- Distance 2D - Compute 2D distance on plane
- Sine - computes sine values
- Sine Wave - Waving sine
Motion
- Bouncy Bubbles - ball collision
- Linear - linear intepolation animation
Simulation
- Flocks - flocks simulation
- Simple Particle System - simple particle system
- Smoke Particle System - Smoke simulation
Transform
- Rotate - basic rotation demo
- Scale - basic scaling demo
- Translate - basic translation demo










