/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package texttwistcheat;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.StackPane;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.Text;
import javafx.stage.Stage;
/**
*
* @author Itreal
*/
public class TextTwistCheat extends Application{
public static void main(String args[]) {
launch(args);
}
@Override
public void start(Stage mainStage) throws Exception {
// Title
mainStage.setTitle("Text Twist Ceheat");
// Grid Layout
GridPane pane = new GridPane(); // init grid
pane.setAlignment(Pos.CENTER); // center element
pane.setVgap(10);// vertical gap
pane.setHgap(10);// horizontal gap
pane.setPadding(new Insets(25, 25, 25, 25));
// Scene
Scene scene = new Scene(pane, 300, 275);// init scene
// Welcome message
Text sceneTitle = new Text("Text Twist Cheat"); // init text title
sceneTitle.setFont(Font.font("Arial", FontWeight.NORMAL, 20)); // style title
pane.add(sceneTitle, 0, 0, 2, 1); // add title to pane
mainStage.setScene(scene); // set the scene
mainStage.show();
}
// /**
// * @param args the command line arguments
// * @throws java.io.FileNotFoundException
// */
// public static void main(String[] args) throws FileNotFoundException {
//
// Search search = new Search();
//
// // Initialization
// String path = "words.txt";
//
// Scanner reader = new Scanner(System.in);
//
// boolean exit = false;
//
// while(exit == false){
// System.out.println("Enter a string: ");
// search.key = reader.next();
// System.out.println();
// System.out.println("=======================");
// System.out.println("========OUTPUT=========");
// System.out.println("=======================");
//
// search.readFile(path);
//
// System.out.println("=======================");
// System.out.println("Exit y/n");
// String ask = reader.next();
//
// exit = ("y".equals(ask));
// }
//
//
//
//
// }
}