This commit is contained in:
2025-10-01 16:27:34 -04:00
parent 8b4803ac14
commit cdca875b22
12 changed files with 24 additions and 11 deletions

View File

@@ -3,14 +3,25 @@ package lodge;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.scene.paint.Color;
import javafx.scene.shape.Ellipse;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
public class TestMainFx extends Application{
@Override
public void start(Stage primaryStage) {
primaryStage.setTitle("Lodge ReservationSystem");
Scene scene = new Scene(new StackPane(new Label("Hello World!")), 800, 600);
// 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);
primaryStage.setScene(scene);
primaryStage.show();
}

View File

@@ -43,8 +43,7 @@ public final class AccomodationManager {
throws IOException, IllegalArgumentException, IllegalOperationException, DuplicateObjectException {
accounts.clear();
// walk directories
Path rootDir = Paths.get(getDataStoreRoot());
DataRepository.WalkFileSystemTree(this, rootDir);
DataRepository.WalkFileSystemTree(this, Path.of(DataRepository.getPath()));
System.out.println(String.format("%s LoadAll Accounts %d", "Deserializing", accounts.size()));
}
@@ -133,7 +132,7 @@ public final class AccomodationManager {
public final static String getPath() {
String home = System.getenv("HOME") != null ? System.getenv("HOME")
: System.getenv("HOMEDRIVE") + System.getenv("HOMEPATH");
return home.replace('\\', '/') + "/workspace/reservationsystem/src/resources";
return home.replace('\\', '/') + "/workspace/reservationsystem/src/resources/db";
}
}
}