View Single Post
  #9 (permalink)  
Old 05-05-2008, 02:52 AM
Bascotie Bascotie is offline
Member
 
Join Date: Apr 2008
Posts: 77
Bascotie is on a distinguished road
What's really confusing me is, for example, to display the JOptionPane the way I wanted with the answers seperated by spaces I used this code:

Code:
public static void main(String[] args) { String userNameFirst = ""; String userNameLast = ""; String userPhone = ""; String userRolls = ""; String userPrints = ""; final int USER_EXPOSURES = 1; String userInput = JOptionPane.showInputDialog(null, "Please enter the following information with a space inbetween each:\n\n" + "First Name\n" + "Last Name\n" + "Phone Number \n" + "Number of Rolls \n" + "Number of Prints \n" + userNameFirst + " " + userNameLast + " " + userPhone + " " + userRolls + " " + userPrints); JOptionPane.showMessageDialog(null, "You input:\n" + userInput); }
But how would I do that in this case where I am using two different classes, the code is definitely different right?
Reply With Quote