-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataExplorer.java
More file actions
59 lines (52 loc) · 1.47 KB
/
Copy pathDataExplorer.java
File metadata and controls
59 lines (52 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import javafx.animation.FillTransition;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.scene.image.Image;
import javafx.scene.layout.StackPane;
import javafx.scene.image.ImageView;
/**
* Write a description of class DataExplorer here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class DataExplorer extends Application
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class DataExplorer
*/
public DataExplorer()
{
// initialise instance variables
x = 0;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
@Override
public void start(Stage stage)
{
Group root = new Group();
Scene scene = new Scene(root, 500, 500, Color.BLACK);
StackPane pane = new StackPane();
Image worldMap = new Image("MAPS_earth-map.jpg");
ImageView imgView = new ImageView(worldMap);
pane.getChildren().add(imgView);
root.getChildren().add(pane);
stage.setScene(scene);
stage.show();
}
public static void main(String[] args)
{
launch(args);
}
}