Skip to content
Advertisement

Trying to figure out how to print what user picks from this GUI code on to another GUI

Trying to figure out how to print what the user picks from this GUI onto another GUI and make it look like an airline ticket or receipt. I’m pretty sure I can design the airline ticket GUI. I’m having trouble coming up with code that would take whatever the user inputs and picks from the GUI code below and print it to another GUI.

JavaScript

Advertisement

Answer

Probably you should first create a class to hold the information get from the user inputs (TicketRequest.class) and handle an object with the data to the new GUI.

Code idea:

JavaScript

The GUInew class may extend a JFrame.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement