Download source archive (world1.zip) or executable jar file (world1.jar).
world1.javaimport javafx.animation.Animation;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.scene.Scene;
//import javafx.scene.Node;
import javafx.scene.layout.Pane;
//import javafx.scene.paint.Color;
//import java.util.*;
public class world1 extends Application
{
@Override // Override the start method in the Application class
public void start(Stage primaryStage)
{
// Create a pane
BounceArea pane = new BounceArea();
// Create a scene and place it in the stage
Scene scene = new Scene(pane, (int) pane.wd,(int) pane.ht);
primaryStage.setTitle("Bounce Area"); // Set the stage title
primaryStage.setScene(scene); // Place the scene in the stage
primaryStage.show(); // Display the stage
}
public static void main(String args[] )
{
launch(args);
}
}
Maintained by John Loomis, updated Fri Mar 02 22:58:43 2018