1
1
package org .team2363 .helixnavigator ;
2
2
3
- import javax .measure .Quantity ;
4
- import javax .measure .quantity .Force ;
3
+ import javafx .application .Application ;
4
+ import javafx .scene .Scene ;
5
+ import javafx .scene .control .Button ;
6
+ import javafx .scene .control .SplitPane ;
7
+ import javafx .scene .layout .StackPane ;
8
+ import javafx .stage .Stage ;
5
9
6
- import org . team2363 . lib . unit . CustomUnits ;
10
+ public class Test extends Application {
7
11
8
- import tech .units .indriya .quantity .Quantities ;
9
- import tech .units .indriya .unit .Units ;
10
-
11
- public class Test {
12
12
public static void main (String [] args ) {
13
- // Unit<Mass> lb = USCustomary.POUND;
14
- // Unit<Mass> g = Units.GRAM;
15
- // var tenLbs = Quantities.getQuantity(10.0, lb);
16
- // var asG = tenLbs.to(g);
17
- // System.out.println("Ten pounds: " + tenLbs);
18
- // System.out.println("As Grams: " + asG);
13
+ launch (args );
14
+ }
19
15
20
- // Unit<Length> inch = USCustomary.INCH;
21
- // Unit<Length> centimeter = MetricPrefix.CENTI(USCustomary.METER);
22
- // var oneInch = Quantities.getQuantity(10.0, inch);
23
- // var asCm = oneInch.to(centimeter);
24
- // System.out.println("One inch: " + oneInch.getValue() + " " + oneInch.getUnit().getSymbol());
25
- // System.out.println("As centimeter: " + asCm);
26
- // System.out.println(CustomUnits.KILOGRAM_SQUARE_METRE);
27
- // System.out.println(CustomUnits.NEWTON_METRE);
28
- // Quantity<Acceleration> x = Quantities.getQuantity(10.0, CustomUnits.FOOT_PER_SQUARE_SECOND);
29
- // System.out.println(x);
30
- Quantity <Force > onePoundForce = Quantities .getQuantity (1.0 , CustomUnits .POUND_FORCE );
31
- System .out .println (CustomUnits .POUND_FOOT );
16
+ @ Override
17
+ public void start (Stage primaryStage ) {
18
+ SplitPane sp = new SplitPane ();
19
+ final StackPane sp1 = new StackPane ();
20
+ sp1 .getChildren ().add (new Button ("Button One" ));
21
+ final StackPane sp2 = new StackPane ();
22
+ sp2 .getChildren ().add (new Button ("Button Two" ));
23
+ final StackPane sp3 = new StackPane ();
24
+ sp3 .getChildren ().add (new Button ("Button Three" ));
25
+ sp .getItems ().addAll (sp1 , sp2 , sp3 );
26
+ sp .setDividerPositions (0.3f , 0.6f , 0.9f );
27
+ primaryStage .setScene (new Scene (sp ));
28
+ primaryStage .show ();
32
29
}
33
- }
30
+ }
0 commit comments