Berbagai contoh Layout pada JavaFX 1.3

June 1, 2010

Ini berbagai contoh layout pada JavaFX 1.3

package bab8_antarmuka;

import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.layout.Flow;
import javafx.scene.layout.Panel;
import javafx.scene.layout.Stack;
import javafx.scene.layout.ClipView;
import javafx.scene.layout.Tile;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.control.ScrollView;
import javafx.scene.layout.LayoutInfo;
import javafx.geometry.Insets;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;
import javafx.scene.Node;
import javafx.scene.shape.Polygon;
import javafx.scene.shape.Ellipse;
import javafx.scene.shape.CubicCurve;

/**
* @author bhangun
*/
function shapes(i: Integer): Node {
var seq = [
Circle {
radius: 30  fill:Color.BLUE
},
CubicCurve {
startX: 0 startY: 50
controlX1: 25 controlY1: 0
controlX2: 75 controlY2: 100
endX: 100 endY: 50
fill:Color.RED
}, Read the rest of this entry »

Advertisements