Latest Entries »

Image

Screenshot

Sample JavaFX code syntax highlighting code editor created by wrapping a JavaScript CodeMirror code editor control in a JavaFX WebView.

Source code reference => https://gist.github.com/1463485

JavaFX Layout Bounds Demo

A couple of sample programs to help understand how layout bounds work in JavaFX.

Screenshot

Demo source code can be found at: https://gist.github.com/1441960

Screenshot

A simpler second demo.

It’s source code can be found in another location: https://gist.github.com/1442298

Screenshot

Code for the demo can be found at: https://gist.github.com/1422815.

Rotation Transform Example

Rotation Transform Example Screenshot

Screenshot

 

Demonstrates how changing various rotation pivot points and axes affect the rotation of an 2D image through a 3D co-ordinate space using JavaFX.

Source code can be found at https://gist.github.com/1475424

Getting Started

Examine the present, recollect the past, envision the future.

Enlighten, elucidate, inspire and entertain.

Make it happen.

package httpviewer;

import javafx.io.http.HttpRequest;
import java.io.*;

def getRequest: HttpRequest = HttpRequest {
  location: "http://www.w3.org/History/1989/proposal.html"
  onInput: function(is: java.io.InputStream) {
    def reader = new BufferedReader(new InputStreamReader(is));
    var char: Character = reader.read();
    var nRead: Integer = 0;
    while (nRead < getRequest.read) {
      print(char);
      char = reader.read();
      nRead++;
    }
    reader.close();
  }
}

getRequest.start();