I am making a small application, like a travel agency app, and I was wondering how you could send inputted information (from a JOptionPane.showInputDialog ("")
) type of input. I need it to be sent to a file, where I can later retrieve it, like a database. Any ideas?
Code:
public boolean action (Event e, Object o)
{
String firstName = JOptionPane.showInputDialog ("Please Enter your first name: ");
String lastName = JOptionPane.showInputDialog ("Please Enter your last name: ");
String address = JOptionPane.showInputDialog ("Please Enter your address: ");
String telephone = JOptionPane.showInputDialog ("Please Enter your telephone num: ");
return true;
}