|
| 1 | +package us.house.admin; |
| 2 | + |
| 3 | +import javafx.application.Application; |
| 4 | +import javafx.geometry.Insets; |
| 5 | +import javafx.geometry.Pos; |
| 6 | +import javafx.scene.Scene; |
| 7 | +import javafx.scene.control.*; |
| 8 | +import javafx.scene.layout.*; |
| 9 | +import javafx.scene.paint.Color; |
| 10 | +import javafx.scene.text.Font; |
| 11 | +import javafx.scene.text.FontWeight; |
| 12 | +import javafx.stage.Stage; |
| 13 | + |
| 14 | +/** Local defensive administration profile; it does not represent government authority. */ |
| 15 | +public final class RoyalsUSGuardIAdmin extends Application { |
| 16 | + private final TextArea activity = new TextArea(); |
| 17 | + |
| 18 | + @Override public void start(Stage stage) { |
| 19 | + BorderPane root = new BorderPane(); |
| 20 | + root.setPadding(new Insets(24)); |
| 21 | + root.setStyle("-fx-background-color:#f7f8fa;"); |
| 22 | + |
| 23 | + VBox header = new VBox(5); |
| 24 | + Label edition = label("JWSTF / ROYALS US GUARD I EDITION", 12, true); |
| 25 | + edition.setTextFill(Color.web("#5d6670")); |
| 26 | + Label title = label("Program Administration", 30, true); |
| 27 | + Label subtitle = label("Safe State Smith · Intellect Guarded · High at All Times", 15, false); |
| 28 | + subtitle.setTextFill(Color.web("#59636d")); |
| 29 | + header.getChildren().addAll(edition, title, subtitle); |
| 30 | + root.setTop(header); |
| 31 | + |
| 32 | + VBox nav = new VBox(8); |
| 33 | + nav.setPadding(new Insets(28, 24, 0, 0)); |
| 34 | + for (String item : new String[]{"Command View","Programs","Services","Modules","Guard","Evidence","Maintenance"}) { |
| 35 | + Button b = new Button(item); |
| 36 | + b.setMaxWidth(Double.MAX_VALUE); |
| 37 | + b.setAlignment(Pos.CENTER_LEFT); |
| 38 | + b.setPrefHeight(40); |
| 39 | + b.setStyle("-fx-background-color:white;-fx-background-radius:8;-fx-border-color:#e1e5e9;-fx-border-radius:8;-fx-padding:0 14;"); |
| 40 | + nav.getChildren().add(b); |
| 41 | + } |
| 42 | + root.setLeft(nav); |
| 43 | + |
| 44 | + VBox content = new VBox(18); |
| 45 | + content.setPadding(new Insets(28, 0, 0, 0)); |
| 46 | + |
| 47 | + HBox guard = card(); |
| 48 | + VBox guardText = new VBox(4); |
| 49 | + Label gs = label("HIGH / LOCAL DEFENSIVE PROFILE", 14, true); |
| 50 | + gs.setTextFill(Color.web("#277447")); |
| 51 | + guardText.getChildren().addAll(label("Guard posture",17,true), gs, |
| 52 | + label("Review-first controls; no external authority is asserted.",13,false)); |
| 53 | + guard.getChildren().add(guardText); |
| 54 | + |
| 55 | + HBox metrics = card(); |
| 56 | + metrics.getChildren().addAll(metric("Programs","Ready"), metric("Services","Monitored"), metric("Integrity","Observed"), metric("Authorization","Required")); |
| 57 | + |
| 58 | + HBox actions = new HBox(10); |
| 59 | + actions.getChildren().addAll(action("Install / Repair","install"), action("Update","update"), action("Verify","verify"), action("Remove","remove")); |
| 60 | + |
| 61 | + VBox evidence = new VBox(8); |
| 62 | + evidence.setPadding(new Insets(18)); |
| 63 | + evidence.setStyle("-fx-background-color:white;-fx-background-radius:10;-fx-border-color:#e1e5e9;-fx-border-radius:10;"); |
| 64 | + evidence.getChildren().addAll(label("Guarded Evidence",16,true), label("Origin → Custody → Production → Release",14,true), |
| 65 | + label("Every material change should be reviewable, attributable to an authorized local operation, and independently verifiable.",13,false)); |
| 66 | + |
| 67 | + activity.setEditable(false); |
| 68 | + activity.setPrefRowCount(6); |
| 69 | + activity.setText("Guard profile ready. No privileged operation has been requested.\n"); |
| 70 | + activity.setStyle("-fx-control-inner-background:white;-fx-border-color:#edf0f2;"); |
| 71 | + content.getChildren().addAll(guard, metrics, actions, evidence, activity); |
| 72 | + root.setCenter(content); |
| 73 | + |
| 74 | + stage.setTitle("Royals US Guard I — Program Administration"); |
| 75 | + stage.setScene(new Scene(root,1080,720)); |
| 76 | + stage.setMinWidth(920); |
| 77 | + stage.setMinHeight(640); |
| 78 | + stage.show(); |
| 79 | + } |
| 80 | + |
| 81 | + private static Label label(String text,double size,boolean bold) { |
| 82 | + Label l=new Label(text); |
| 83 | + l.setFont(Font.font("System",bold?FontWeight.BOLD:FontWeight.NORMAL,size)); |
| 84 | + return l; |
| 85 | + } |
| 86 | + private static HBox card() { |
| 87 | + HBox b=new HBox(18); b.setAlignment(Pos.CENTER_LEFT); b.setPadding(new Insets(18)); |
| 88 | + b.setStyle("-fx-background-color:white;-fx-background-radius:10;-fx-border-color:#e1e5e9;-fx-border-radius:10;"); |
| 89 | + return b; |
| 90 | + } |
| 91 | + private static VBox metric(String name,String value) { |
| 92 | + VBox b=new VBox(3); Label n=label(name,13,false); n.setTextFill(Color.web("#66717b")); |
| 93 | + b.getChildren().addAll(n,label(value,16,true)); HBox.setHgrow(b,Priority.ALWAYS); return b; |
| 94 | + } |
| 95 | + private Button action(String name,String operation) { |
| 96 | + Button b=new Button(name); b.setPrefHeight(42); |
| 97 | + b.setStyle("-fx-background-color:white;-fx-border-color:#d7dce1;-fx-border-radius:8;-fx-background-radius:8;-fx-padding:0 16;"); |
| 98 | + b.setOnAction(e->activity.appendText("Guarded request: "+operation+" — authorization and review required.\n")); |
| 99 | + return b; |
| 100 | + } |
| 101 | + public static void main(String[] args){ launch(args); } |
| 102 | +} |
0 commit comments