diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..49036e8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+nb-configuration.xml
+/target/
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index af72ee0..7b856e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,4 +10,12 @@
1.8
1.8
+
+
+
+ com.jfoenix
+ jfoenix
+ 1.4.0
+
+
\ No newline at end of file
diff --git a/src/main/java/com/rohitawate/restaurant/dashboard/DashboardController.java b/src/main/java/com/rohitawate/restaurant/dashboard/DashboardController.java
new file mode 100644
index 0000000..4943bde
--- /dev/null
+++ b/src/main/java/com/rohitawate/restaurant/dashboard/DashboardController.java
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2018 Rohit Awate.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.rohitawate.restaurant.dashboard;
+
+import java.io.BufferedReader;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.ResourceBundle;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import javafx.collections.FXCollections;
+import javafx.collections.ObservableList;
+import javafx.fxml.FXML;
+import javafx.fxml.Initializable;
+import javafx.scene.control.ComboBox;
+import javafx.scene.control.TextArea;
+import javafx.scene.control.TextField;
+
+/**
+ * FXML Controller class
+ *
+ * @author Rohit Awate
+ */
+public class DashboardController implements Initializable {
+
+ @FXML
+ private TextField addressField;
+ @FXML
+ private ComboBox httpMethodBox;
+ @FXML
+ private TextArea responseArea;
+
+ private final String[] httpMethods = {"GET", "POST", "PUT", "DELETE", "PATCH"};
+
+ @Override
+ public void initialize(URL url, ResourceBundle rb) {
+ httpMethodBox.getItems().addAll(httpMethods);
+ httpMethodBox.setValue("GET");
+ responseArea.wrapTextProperty().set(true);
+ }
+
+ @FXML
+ private void sendAction() {
+
+ }
+}
diff --git a/src/main/java/com/rohitawate/restaurant/main/Main.java b/src/main/java/com/rohitawate/restaurant/main/Main.java
index 69453c0..fdfb337 100644
--- a/src/main/java/com/rohitawate/restaurant/main/Main.java
+++ b/src/main/java/com/rohitawate/restaurant/main/Main.java
@@ -15,12 +15,27 @@
*/
package com.rohitawate.restaurant.main;
+import javafx.application.Application;
+import javafx.fxml.FXMLLoader;
+import javafx.scene.Parent;
+import javafx.scene.Scene;
+import javafx.stage.Stage;
+
/**
*
* @author Rohit Awate
*/
-public class Main {
+public class Main extends Application {
+ @Override
+ public void start(Stage primaryStage) throws Exception {
+ Parent dashboard = FXMLLoader.load(getClass().getResource("/fxml/Dashboard.fxml"));
+ Stage dashboardStage = new Stage();
+ dashboardStage.setScene(new Scene(dashboard));
+ dashboardStage.setTitle("RESTaurant");
+ dashboardStage.show();
+ }
+
public static void main(String args[]) {
-
+ launch(args);
}
}
diff --git a/src/main/resources/fxml/Dashboard.fxml b/src/main/resources/fxml/Dashboard.fxml
new file mode 100644
index 0000000..a916c02
--- /dev/null
+++ b/src/main/resources/fxml/Dashboard.fxml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/styles/dashboard.css b/src/main/resources/styles/dashboard.css
new file mode 100644
index 0000000..3b558d8
--- /dev/null
+++ b/src/main/resources/styles/dashboard.css
@@ -0,0 +1,7 @@
+#sendButton {
+ -fx-background-color: lightslategray;
+}
+
+#responseArea {
+ -fx-font-family: 'Liberation Mono';
+}
\ No newline at end of file