User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 427,164 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,001 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting

Help with a reservation program! GUI Messed XD

Join Date: Mar 2005
Posts: 13
Reputation: buggytoast is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
buggytoast buggytoast is offline Offline
Newbie Poster

Re: Help with a reservation program! GUI Messed XD

  #3  
Jun 1st, 2005
Here...passengerdata
[PHP]
import java.io.Serializable;
import javax.swing.*;

public class PassengerData implements Serializable
{

private String firstName;
private String lastName;
private String mealType;
private String seat;
private String classType;
private String flightNo;
private int checkEnter;

public PassengerData() {
firstName = "";
lastName = "";
mealType = "";
seat = "";
classType = "";
flightNo = "";
checkEnter = 0;
}

public PassengerData( String fName, String lName, String mealT, String sT, String classT, String flightN, int checkE )
{
setRecord( fName, lName, mealT, sT, classT, flightN, checkE );
}

public void setRecord( String fName, String lName, String mealT, String sT, String classT, String flightN, int checkE )
{
firstName = fName;
lastName = lName;
mealType = mealT;
seat = sT;
classType = classT;
flightNo = flightN;
checkEnter = checkE;
}

public String getFirstName()
{
return firstName;
}

public String getLastName()
{
return lastName;
}

public String getMealType()
{
return mealType;
}

public String getSeat()
{
return seat;
}

public String getClassType()
{
return classType;
}

public String getflightNo()
{
return flightNo;
}

public int getCheckEnter(){

return checkEnter;
}
}[/PHP]
Reply With Quote  
All times are GMT -4. The time now is 8:40 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC