-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFXMainePane.java
More file actions
63 lines (52 loc) · 1.9 KB
/
FXMainePane.java
File metadata and controls
63 lines (52 loc) · 1.9 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
60
61
62
63
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.RadioButton;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleGroup;
import javafx.scene.control.Tooltip;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
/**
* This panel is the basic panel, inside which other panels are placed.
* Before beginning to implement, design the structure of your GUI in order to
* understand what panels go inside which ones, and what buttons or other components
* go in which panels.
* @author ralexander
*
*/
//make the main panel's layout be a VBox
public class FXMainPane extends VBox {
//student Task #2:
// declare five buttons, a label, and a textfield
// declare two HBoxes
//student Task #4:
// declare an instance of DataManager
/**
* The MainPanel constructor sets up the entire GUI in this approach. Remember to
* wait to add a component to its containing component until the container has
* been created. This is the only constraint on the order in which the following
* statements appear.
*/
FXMainPane() {
//student Task #2:
// instantiate the buttons, label, and textfield
// instantiate the HBoxes
//student Task #4:
// instantiate the DataManager instance
// set margins and set alignment of the components
//student Task #3:
// add the label and textfield to one of the HBoxes
// add the buttons to the other HBox
// add the HBoxes to this FXMainPanel (a VBox)
}
//Task #4:
// create a private inner class to handle the button clicks
}