Skip to content

Commit

Permalink
Help Button Added
Browse files Browse the repository at this point in the history
Placement not permanent
  • Loading branch information
whernandez23 authored May 13, 2021
1 parent d8f2f75 commit 3102ba2
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion Expedia/src/application/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,33 @@ else if(CardF.getText().isEmpty()) {

});

Button helpButton = new Button("HELP");
helpButton.setOnAction(new EventHandler<ActionEvent>()
{
@Override
public void handle(ActionEvent e)
{
Platform.runLater(new Runnable()
{
public void run()
{
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setTitle("--- Ticket Kiosk Help Window ---");
alert.setHeaderText("Help Screen");

String hStr="- Starting Locations and Ending Locations can be chosen via a drop-down menu.\r\n" +
"- Click on FIND TIMES to get a list of Depart Times to choose from.\r\n" +
"- Click on one of the Recommendations to purchase a great-value, preset package.\r\n" +
"- Please fill out all forms before submitting for purchase.\r\n" +
"- Click on SUBMIT to confirm a purchase.\r\n";

alert.setContentText(hStr);
alert.showAndWait();
}
});
}
});

Button exitButton = new Button("EXIT");
exitButton.setOnAction(new EventHandler<ActionEvent>()
{
Expand Down Expand Up @@ -502,7 +529,8 @@ public void run()

//Gridpane for payment
contact.add(submitButton, 1, 7, 1, 1);
contact.add(exitButton, 2, 8, 1, 1);
contact.add(helpButton, 2, 8, 1, 1);
contact.add(exitButton, 3, 8, 1, 1);
contact.setVgap(5);

//Gridpane for Body
Expand Down

0 comments on commit 3102ba2

Please sign in to comment.