Javafx Program for encrypting file from user. Need help tofix/improve the following code:
public class Encrypting extends Application{
double paneWidth = 400;
double paneHeight = 100;
TextField tfEncryptInput;
TextField tfEncryptOutput;
@Override
public void start(Stage primaryStage) throwsIOException,EOFException {
// TODO Auto-generated method stub
tfEncryptInput = new TextField();
tfEncryptInput.setPromptText(“File to encrypt”);
tfEncryptInput.getText();
tfEncryptOutput = new TextField();
tfEncryptOutput.setPromptText(“Save encrypted file to”);
// Create encrypt button
Button btCrypt = new Button(“Encrypt”);
// New pane, add tf`s and bt
GridPane pane = new GridPane();
pane.setAlignment(Pos.CENTER);
pane.add(tfEncryptInput, 1, 0);
pane.add(tfEncryptOutput, 2, 0);
pane.add(btCrypt,1,2);
// Create a scene and place it in the stage
Scene scene = new Scene(pane, paneWidth, paneHeight);
primaryStage.setTitle(“Encrypt file”); // Set the stagetitle
primaryStage.setScene(scene); // Place the scene in thestage
primaryStage.show(); // Display the stage
btCrypt.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent
PayPal Gateway not configured
PayPal Gateway not configured