2025-10-01 14:42:41 -04:00
|
|
|
package lodge;
|
|
|
|
|
|
|
|
|
|
import javafx.application.Application;
|
|
|
|
|
import javafx.scene.Scene;
|
|
|
|
|
import javafx.stage.Stage;
|
|
|
|
|
import javafx.scene.layout.StackPane;
|
2025-10-01 16:27:34 -04:00
|
|
|
import javafx.scene.paint.Color;
|
|
|
|
|
import javafx.scene.shape.Ellipse;
|
|
|
|
|
import javafx.scene.text.Font;
|
|
|
|
|
import javafx.scene.text.Text;
|
2025-10-01 14:42:41 -04:00
|
|
|
|
|
|
|
|
public class TestMainFx extends Application{
|
|
|
|
|
@Override
|
|
|
|
|
public void start(Stage primaryStage) {
|
|
|
|
|
primaryStage.setTitle("Lodge ReservationSystem");
|
2025-10-01 16:27:34 -04:00
|
|
|
// Create an Ellipse and set fill color
|
|
|
|
|
Ellipse ellipse = new Ellipse(110, 70);
|
|
|
|
|
ellipse.setFill(Color.LIGHTBLUE);
|
|
|
|
|
// Create a Text shape with font and size
|
|
|
|
|
Text text = new Text("My Shapes");
|
|
|
|
|
text.setFont(new Font("Arial Bold", 24));
|
|
|
|
|
StackPane stackPane = new StackPane();
|
|
|
|
|
stackPane.getChildren().addAll(ellipse, text);
|
|
|
|
|
Scene scene = new Scene(stackPane,800, 600, Color.LIGHTYELLOW);
|
2025-10-01 14:42:41 -04:00
|
|
|
primaryStage.setScene(scene);
|
|
|
|
|
primaryStage.show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|
launch(args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|