import java.util.Arrays;
import de.diejungsvondertanke.tankstelle.error.NoSuchFuelTypeError;
+import de.diejungsvondertanke.tankstelle.ui.JFX;
/**
* Main Class
*/
public static ArrayList<FuelStation> fuelStations = new ArrayList<FuelStation>(Arrays.asList(initialFuelStations));
+ /**
+ * Launch GUI
+ *
+ * @param args Program arguments from additionally passed parameters. Mandatory,
+ * but never used here.
+ */
+ public static void main(String[] args) {
+ JFX.launch(args);
+ }
+
/**
* Get an array of fuel stations which have a number of vending machines
* that is equal to {@code number_of_vending_machines}
stage.show();
}
- public static void main(String[] args) {
- launch(args);
- }
-
private static Parent loadFXML(String fxml) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(JFX.class.getResource("/ui/" + fxml + ".fxml"));
parent = fxmlLoader.load();