bhargavat

ChairyPick

Nov 29th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 17.83 KB | None | 0 0
  1. import java.awt.EventQueue;
  2.  
  3. import javax.swing.JFrame;
  4.  
  5. import java.awt.Color;
  6.  
  7. import javax.swing.ImageIcon;
  8. import javax.swing.JPanel;
  9.  
  10. import java.awt.CardLayout;
  11.  
  12. import javax.swing.JButton;
  13.  
  14. import java.awt.event.ActionListener;
  15. import java.awt.event.ActionEvent;
  16.  
  17. import javax.swing.SwingConstants;
  18.  
  19. import java.awt.Font;
  20.  
  21. import javax.swing.BorderFactory;
  22. import javax.swing.JTextArea;
  23. import javax.swing.JLabel;
  24. import javax.swing.JCheckBox;
  25. import javax.swing.JTextField;
  26. import javax.swing.JTable;
  27. import javax.swing.table.DefaultTableModel;
  28. import javax.swing.border.LineBorder;
  29. import javax.swing.border.MatteBorder;
  30. import javax.swing.BoxLayout;
  31. import javax.swing.JComboBox;
  32. import javax.swing.DefaultComboBoxModel;
  33.  
  34. import java.awt.GridLayout;
  35.  
  36.  
  37. public class ChairyPick{
  38.  
  39.     private JFrame frame;
  40.     private JTextField txtNumpeople;
  41.     private JTextField txtChild;
  42.     private int selectedFlight = 0; //flight identifier
  43.     private String flight1 = "San Francisco to New York City";
  44.     private String flight2 = "San Francisco to Miami";
  45.     private String flight3 = "San Francisco to Las Vegas";
  46.     private JTable table;
  47.     private JTable table_1;
  48.     private JTable order;
  49.     private JTextField txtFirstName;
  50.     private JTextField txtLastName;
  51.     private JTextField txtCreditCardNumber;
  52.     private JTextField txtStreetAddress;
  53.     private JTextField txtCvc;
  54.     private JTextField txtCity;
  55.     private JTextField txtState;
  56.     private JTextField txtZipCode;
  57.     private JCheckBox chckbxEconomyClass;
  58.     private JCheckBox chckbxHandicapped;
  59.    
  60.    
  61.     UserPreferences pref;
  62.     /**
  63.      * Launch the application.
  64.      */
  65.     public static void main(String[] args) {
  66.         EventQueue.invokeLater(new Runnable() {
  67.             public void run() {
  68.                 try {
  69.                     ChairyPick window = new ChairyPick();
  70.                     window.frame.setVisible(true);
  71.                 } catch (Exception e) {
  72.                     e.printStackTrace();
  73.                 }
  74.             }
  75.         });
  76.     }
  77.  
  78.     /**
  79.      * Create the application.
  80.      */
  81.     public ChairyPick() {
  82.         initialize();
  83.     }
  84.  
  85.     /**
  86.      * Initialize the contents of the frame.
  87.      */
  88.     private void initialize() {
  89.         frame = new JFrame();
  90.         frame.setBackground(Color.WHITE);
  91.         frame.setResizable(false);
  92.         frame.getContentPane().setBackground(new Color(255, 255, 255));
  93.         frame.getContentPane().setLayout(new CardLayout(0, 0));
  94.        
  95.         final JPanel panelMenu = new JPanel();
  96.         panelMenu.setBackground(Color.WHITE);
  97.         frame.getContentPane().add(panelMenu, "name_1446238410875293000");
  98.         panelMenu.setLayout(null);
  99.        
  100.         final JPanel panelPreferences = new JPanel();
  101.         panelPreferences.setBackground(Color.WHITE);
  102.         frame.getContentPane().add(panelPreferences, "name_1446238417539194000");
  103.         panelPreferences.setLayout(null);
  104.        
  105.         final JPanel panelChart = new JPanel();
  106.         panelMenu.setBackground(Color.WHITE);
  107.         frame.getContentPane().add(panelChart, "name_1446238420814244000");
  108.         panelChart.setLayout(null);
  109.         //frame = new JFrame();
  110.         //frame.setBounds(100, 100, 450, 640);
  111.         //frame.setBackground(Color.WHITE);
  112.         //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  113.         //frame.getContentPane().setLayout(null);
  114.         //panelChart.add(frame);
  115.        
  116.         JPanel pnlFir1 = new JPanel(); //panel for the 1st first-class set
  117.         panelChart.add(pnlFir1);
  118.         pnlFir1.setBounds(27, 27, 93, 85);
  119.         pnlFir1.setLayout(new GridLayout(2, 2, 10, 10));
  120.        
  121.        
  122.         JPanel pnlFir2 = new JPanel();
  123.         panelChart.add(pnlFir2);
  124.         pnlFir2.setBounds(177, 27, 93, 85);
  125.         pnlFir2.setLayout(new GridLayout(2, 2, 10, 10));
  126.        
  127.         JPanel pnlFir3 = new JPanel();
  128.         panelChart.add(pnlFir3);
  129.         pnlFir3.setBounds(322, 27, 93, 85);
  130.         pnlFir3.setLayout(new GridLayout(2, 2, 10, 10));
  131.        
  132.         JPanel pnlBus1 = new JPanel();
  133.         panelChart.add(pnlBus1);
  134.         pnlBus1.setBounds(27, 135, 93, 151);
  135.         pnlBus1.setLayout(new GridLayout(6, 2, 5, 5));
  136.        
  137.        
  138.         JPanel pnlBus2 = new JPanel();
  139.         panelChart.add(pnlBus2);
  140.         pnlBus2.setBounds(177, 135, 93, 151);
  141.         pnlBus2.setLayout(new GridLayout(6, 2, 5, 5));
  142.        
  143.         JPanel pnlBus3 = new JPanel();
  144.         panelChart.add(pnlBus3);
  145.         pnlBus3.setBounds(322, 135, 93, 151);
  146.         pnlBus3.setLayout(new GridLayout(6, 2, 5, 5));
  147.        
  148.        
  149.         JPanel pnlEco1 = new JPanel();
  150.         panelChart.add(pnlEco1);
  151.         pnlEco1.setBounds(27, 309, 93, 261);
  152.         pnlEco1.setLayout(new GridLayout(8, 3, 5, 5));
  153.        
  154.         JPanel pnlEco2 = new JPanel();
  155.         panelChart.add(pnlEco2);
  156.         pnlEco2.setBounds(177, 309, 93, 261);
  157.         pnlEco2.setLayout(new GridLayout(8, 3, 5, 5));
  158.        
  159.         JPanel pnlEco3 = new JPanel();
  160.         panelChart.add(pnlEco3);
  161.         pnlEco3.setBounds(322, 309, 93, 261);
  162.         pnlEco3.setLayout(new GridLayout(8, 3, 5, 5));
  163.        
  164.        
  165.         //*****************************************Flight Selection Menu****************************************** 
  166.         JTextArea txtrAvailableFlights = new JTextArea();
  167.         txtrAvailableFlights.setEditable(false);
  168.         txtrAvailableFlights.setFont(new Font("Orator Std", Font.PLAIN, 25));
  169.         txtrAvailableFlights.setText("Available Flights");
  170.         txtrAvailableFlights.setBounds(94, 32, 263, 42);
  171.         panelMenu.add(txtrAvailableFlights);
  172.        
  173.         JButton flight1 = new JButton(new ImageIcon(ChairyPick.class.getResource("/img/flight-1.png")));
  174.         flight1.addActionListener(new ActionListener() {
  175.             public void actionPerformed(ActionEvent e) {
  176.                 selectedFlight = 1;
  177.                 panelMenu.setVisible(false);
  178.                 panelPreferences.setVisible(true);
  179.             }
  180.         });
  181.         flight1.setBounds(30, 97, 390, 127);
  182.         panelMenu.add(flight1);
  183.        
  184.         JButton flight2 = new JButton("flight2");
  185.         flight2.addActionListener(new ActionListener() {
  186.             public void actionPerformed(ActionEvent e) {
  187.                 selectedFlight = 2;
  188.                 panelMenu.setVisible(false);
  189.                 panelPreferences.setVisible(true);
  190.             }
  191.         });
  192.         flight2.setIcon(new ImageIcon(ChairyPick.class.getResource("/img/flight-2.png")));
  193.         flight2.setBounds(30, 266, 390, 127);
  194.         panelMenu.add(flight2);
  195.        
  196.         JButton flight3 = new JButton("flight3");
  197.         flight3.addActionListener(new ActionListener() {
  198.             public void actionPerformed(ActionEvent e) {
  199.                 selectedFlight = 3;
  200.                 panelMenu.setVisible(false);
  201.                 panelPreferences.setVisible(true);
  202.             }
  203.         });
  204.         flight3.setIcon(new ImageIcon(ChairyPick.class.getResource("/img/flight-3.png")));
  205.         flight3.setBounds(30, 433, 390, 127);
  206.         frame.setBounds(100, 100, 450, 640);
  207.         panelMenu.add(flight3);
  208.        
  209.         //*****************************************User Preferences******************************************  
  210.         JLabel lblNumberOfPeople = new JLabel("Number of People:");
  211.         lblNumberOfPeople.setFont(new Font("Orator Std", Font.PLAIN, 18));
  212.         lblNumberOfPeople.setBounds(25, 131, 194, 40);
  213.         panelPreferences.add(lblNumberOfPeople);
  214.        
  215.         JLabel lblChildren = new JLabel("How many are children?");
  216.         lblChildren.setBounds(25, 197, 250, 40);
  217.         lblChildren.setFont(new Font("Orator Std", Font.PLAIN, 18));
  218.         panelPreferences.add(lblChildren);
  219.        
  220.         JCheckBox chckbxBusinessClass = new JCheckBox("Business Class");
  221.         chckbxBusinessClass.setFont(new Font("Orator Std", Font.PLAIN, 16));
  222.         chckbxBusinessClass.setBounds(25, 281, 182, 23);
  223.         panelPreferences.add(chckbxBusinessClass);
  224.        
  225.         chckbxEconomyClass = new JCheckBox("Economy Class");
  226.         chckbxEconomyClass.setFont(new Font("Orator Std", Font.PLAIN, 16));
  227.         chckbxEconomyClass.setBounds(219, 270, 194, 46);
  228.         panelPreferences.add(chckbxEconomyClass);
  229.        
  230.         txtNumpeople = new JTextField();
  231.         txtNumpeople.setBounds(231, 133, 80, 28);
  232.         panelPreferences.add(txtNumpeople);
  233.         txtNumpeople.setColumns(10);
  234.        
  235.         txtChild = new JTextField();
  236.         txtChild.setBounds(288, 199, 61, 28);
  237.         panelPreferences.add(txtChild);
  238.         txtChild.setColumns(1);
  239.        
  240.         chckbxHandicapped = new JCheckBox("Handicapped");
  241.         chckbxHandicapped.setFont(new Font("Orator Std", Font.PLAIN, 16));
  242.         chckbxHandicapped.setBounds(131, 345, 205, 37);
  243.         panelPreferences.add(chckbxHandicapped);
  244.        
  245.         JLabel lblSeatPreferences = new JLabel("Seat Preferences");
  246.         lblSeatPreferences.setFont(new Font("Orator Std", Font.PLAIN, 24));
  247.         lblSeatPreferences.setHorizontalAlignment(SwingConstants.CENTER);
  248.         lblSeatPreferences.setBounds(95, 40, 279, 40);
  249.         panelPreferences.add(lblSeatPreferences);
  250.        
  251.         JButton btnSearch = new JButton("Search");
  252.         btnSearch.addActionListener(new ActionListener() {
  253.             public void actionPerformed(ActionEvent e) {
  254.                 int people = Integer.parseInt(txtNumpeople.getText());
  255.                 int child = Integer.parseInt(txtChild.getText());
  256.                 boolean eco = chckbxEconomyClass.isEnabled();
  257.                 boolean handicap = chckbxHandicapped.isEnabled();
  258.                 UserPreferences pref = new UserPreferences(people,child,eco,handicap);
  259.             }
  260.         });
  261.         btnSearch.setIcon(new ImageIcon(ChairyPick.class.getResource("/img/search.png")));
  262.         btnSearch.setBounds(62, 453, 303, 70);
  263.         panelPreferences.add(btnSearch);
  264.         btnSearch.addActionListener(new ActionListener() {
  265.             public void actionPerformed(ActionEvent e){
  266.                 panelChart.setVisible(true);
  267.                 panelPreferences.setVisible(false);
  268.                
  269.             }
  270.            
  271.         });
  272.        
  273.         JButton btnBack = new JButton("");
  274.         btnBack.addActionListener(new ActionListener() {
  275.             public void actionPerformed(ActionEvent e) {
  276.                 panelMenu.setVisible(true);
  277.                 panelPreferences.setVisible(false);
  278.             }
  279.         });
  280.         btnBack.setBorder(BorderFactory.createEmptyBorder());
  281.         btnBack.setIcon(new ImageIcon(ChairyPick.class.getResource("/img/back.png")));
  282.         btnBack.setBounds(6, 25, 80, 56);
  283.         panelPreferences.add(btnBack);
  284.     //*****************************************Plane Chart******************************************   
  285.         Color ecoColor = new Color(98, 148, 229); //blue
  286.         Color busColor = new Color(125, 69, 216); //purple
  287.             //panelChart.add(pnlFir1);
  288.            
  289.             String[]lblFir1 = {"FA1", "FA2", "FB1", "FB2"};
  290.             JButton[] seats = new JButton[lblFir1.length];
  291.             for(int i = 0; i < seats.length; i++){
  292.             seats[i] = new JButton(lblFir1[i]);
  293.             //seats[i].setFont(new Font("Arial", Font.PLAIN, 4));
  294.             seats[i].setBackground(new Color(255, 195, 0));//yellow
  295.             seats[i].setOpaque(true);
  296.             seats[i].setBorder(null);
  297.             seats[i].setBorderPainted(false);
  298.             pnlFir1.add(seats[i]);
  299.             panelChart.add(pnlFir1);
  300.             }
  301.             //panelChart.add(pnlFir2);
  302.            
  303.             String[]lblFir2 = {"FA3", "FA4", "FB3", "FB4"};
  304.             JButton[] seats1 = new JButton[lblFir2.length];
  305.             for(int i = 0; i < seats1.length; i++){
  306.             seats1[i] = new JButton(lblFir2[i]);
  307.             seats1[i].setBackground(new Color(255, 195, 0));//yellow
  308.             seats1[i].setOpaque(true);
  309.             seats1[i].setBorder(null);
  310.             seats1[i].setBorderPainted(false);
  311.             pnlFir2.add(seats1[i]);
  312.             panelChart.add(pnlFir2);
  313.             }
  314.            
  315.             String[]lblFir3 = {"FA5", "FA6", "FB5", "FB6"};
  316.             JButton[] seats2 = new JButton[lblFir2.length];
  317.             for(int i = 0; i < seats2.length; i++){
  318.             seats2[i] = new JButton(lblFir2[i]);
  319.             seats2[i].setBackground(new Color(255, 195, 0));//yellow
  320.             seats2[i].setOpaque(true);
  321.             seats2[i].setBorder(null);
  322.             seats2[i].setBorderPainted(false);
  323.             pnlFir3.add(seats2[i]);
  324.             }
  325.            
  326.             String[]lblBus1 = {"BA1", "BA2","BB1", "BB2", "BC1","BC2", "BD1", "BD2","BE1","BE2","BF1","BF2"};
  327.             JButton[] seats3 = new JButton[lblBus1.length];
  328.             for(int i = 0; i < seats3.length; i++){
  329.             seats3[i] = new JButton(lblBus1[i]);
  330.             seats3[i].setBackground(new Color(125, 69, 216));//purple
  331.             seats3[i].setOpaque(true);
  332.             seats3[i].setBorder(null);
  333.             seats3[i].setBorderPainted(false);
  334.             pnlBus1.add(seats3[i]);
  335.             }
  336.            
  337.             String[]lblBus2 = {"BA3", "BA4","BB3", "BB4", "BC3","BC4", "BD3", "BD4","BE3","BE4","BF3","BF4"};
  338.             JButton[] seats4 = new JButton[lblBus2.length];
  339.             for(int i = 0; i < seats4.length; i++){
  340.             seats4[i] = new JButton(lblBus2[i]);
  341.             seats4[i].setBackground(busColor);//purple
  342.             seats4[i].setOpaque(true);
  343.             seats4[i].setBorder(null);
  344.             seats4[i].setBorderPainted(false);
  345.             pnlBus2.add(seats4[i]);
  346.             }
  347.            
  348.             String[]lblBus3 = {"BA5", "BA6","BB5", "BB6", "BC5","BC6", "BD5", "BD6","BE5","BE6","BF5","BF6"};
  349.             JButton[] seats5 = new JButton[lblBus3.length];
  350.             for(int i = 0; i < seats5.length; i++){
  351.             seats5[i] = new JButton(lblBus3[i]);
  352.             seats5[i].setBackground(busColor);//purple
  353.             seats5[i].setOpaque(true);
  354.             seats5[i].setBorder(null);
  355.             seats5[i].setBorderPainted(false);
  356.             pnlBus3.add(seats5[i]);
  357.             }
  358.            
  359.             String[]lblEco1 = {"EA1", "EA2","EA3", "EB1", "EB2","EB3", "EC1",
  360.                                 "EC2","EC3","ED1","ED2","ED3","EE1","EE2","EE3",
  361.                                 "EF1","EF2","EF3","EG1","EG2","EG3","EH1","EH2","EH3"};
  362.             JButton[] seats6 = new JButton[lblEco1.length];
  363.             for(int i = 0; i < seats6.length; i++){
  364.             seats6[i] = new JButton(lblEco1[i]);
  365.             seats6[i].setBackground(ecoColor);//blue
  366.             seats6[i].setOpaque(true);
  367.             seats6[i].setBorder(null);
  368.             seats6[i].setBorderPainted(false);
  369.             pnlEco1.add(seats6[i]);
  370.             }
  371.            
  372.             String[]lblEco2 = {"EA4", "EA4","EA6", "EB4", "EB5","EB6", "EC4",
  373.                     "EC5","EC6","ED4","ED5","ED6","EE4","EE5","EE6",
  374.                     "EF4","EF5","EF6","EG4","EG5","EG6","EH4","EH5","EH6"};
  375.             JButton[] seats7 = new JButton[lblEco2.length];
  376.             for(int i = 0; i < seats7.length; i++){
  377.             seats7[i] = new JButton(lblEco2[i]);
  378.             seats7[i].setBackground(ecoColor);//blue
  379.             seats7[i].setOpaque(true);
  380.             seats7[i].setBorder(null);
  381.             seats7[i].setBorderPainted(false);
  382.             pnlEco2.add(seats7[i]);
  383.             }
  384.            
  385.             String[]lblEco3 = {"EA4", "EA4","EA6", "EB4", "EB5","EB6", "EC4",
  386.                     "EC5","EC6","ED4","ED5","ED6","EE4","EE5","EE6",
  387.                     "EF4","EF5","EF6","EG4","EG5","EG6","EH4","EH5","EH6"};
  388.             JButton[] seats8 = new JButton[lblEco3.length];
  389.             for(int i = 0; i < seats8.length; i++){
  390.             seats8[i] = new JButton(lblEco2[i]);
  391.             seats8[i].setBackground(ecoColor);//blue
  392.             seats8[i].setOpaque(true);
  393.             seats8[i].setBorder(null);
  394.             seats8[i].setBorderPainted(false);
  395.             pnlEco3.add(seats8[i]);
  396.             }
  397.            
  398.        
  399.    
  400.        
  401.        
  402.     //*****************************************Order Checkout******************************************
  403.         JPanel panelCheckout = new JPanel();
  404.         panelCheckout.setBackground(Color.WHITE);
  405.         frame.getContentPane().add(panelCheckout, "name_1446238423153284000");
  406.         panelCheckout.setLayout(null);
  407.        
  408.         String rowData[][] = { { "Row1-Column1", "Row1-Column2", "Row1-Column3" },
  409.                 { "Row2-Column1", "Row2-Column2", "Row2-Column3" } };
  410.             String columnNames[] = { "Column One", "Column Two", "Column Three" };
  411.        
  412.         order = new JTable(rowData, columnNames);
  413.         order.setModel(new DefaultTableModel(
  414.             new Object[][] {
  415.                 {"Item Description", "Quantity", "Price"},
  416.                 {"SFO to NYC Economy x2", "2", "$400"},
  417.             },
  418.             new String[] {
  419.                 "Column One", "Column Two", "Column Three"
  420.             }
  421.         ));
  422.         order.setBorder(new LineBorder(new Color(0, 0, 0)));
  423.         order.setBounds(37, 86, 400, 45);
  424.         panelCheckout.add(order);
  425.        
  426.         JLabel lblPaymentOption = new JLabel("Payment Option:");
  427.         lblPaymentOption.setBounds(37, 226, 132, 45);
  428.         panelCheckout.add(lblPaymentOption);
  429.        
  430.         txtFirstName = new JTextField();
  431.         txtFirstName.setText("First Name");
  432.         txtFirstName.setBounds(27, 290, 173, 28);
  433.         panelCheckout.add(txtFirstName);
  434.         txtFirstName.setColumns(10);
  435.        
  436.         txtLastName = new JTextField();
  437.         txtLastName.setText("Last Name");
  438.         txtLastName.setBounds(212, 290, 172, 28);
  439.         panelCheckout.add(txtLastName);
  440.         txtLastName.setColumns(10);
  441.        
  442.         txtCreditCardNumber = new JTextField();
  443.         txtCreditCardNumber.setText("Credit Card Number");
  444.         txtCreditCardNumber.setBounds(27, 352, 275, 28);
  445.         panelCheckout.add(txtCreditCardNumber);
  446.         txtCreditCardNumber.setColumns(10);
  447.        
  448.         JComboBox comboBox = new JComboBox();
  449.         comboBox.setModel(new DefaultComboBoxModel(new String[] {"Visa", "MasterCard", "American Express", "Discover"}));
  450.         comboBox.setBounds(202, 236, 139, 27);
  451.         panelCheckout.add(comboBox);
  452.        
  453.         JLabel lblExpirationDate = new JLabel("Expiration Date:");
  454.         lblExpirationDate.setBounds(27, 402, 132, 28);
  455.         panelCheckout.add(lblExpirationDate);
  456.        
  457.         JComboBox comboBox_1 = new JComboBox();
  458.         comboBox_1.setModel(new DefaultComboBoxModel(new String[] {"Month", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"}));
  459.         comboBox_1.setBounds(161, 404, 112, 27);
  460.         panelCheckout.add(comboBox_1);
  461.        
  462.         JComboBox comboBox_2 = new JComboBox();
  463.         comboBox_2.setModel(new DefaultComboBoxModel(new String[] {"Year", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024"}));
  464.         comboBox_2.setBounds(297, 404, 85, 27);
  465.         panelCheckout.add(comboBox_2);
  466.        
  467.         JLabel lblBillingAddress = new JLabel("Billing Address:");
  468.         lblBillingAddress.setBounds(27, 442, 112, 28);
  469.         panelCheckout.add(lblBillingAddress);
  470.        
  471.         txtStreetAddress = new JTextField();
  472.         txtStreetAddress.setText("Street Address");
  473.         txtStreetAddress.setBounds(161, 442, 220, 28);
  474.         panelCheckout.add(txtStreetAddress);
  475.         txtStreetAddress.setColumns(10);
  476.        
  477.         txtCvc = new JTextField();
  478.         txtCvc.setText("CVC");
  479.         txtCvc.setBounds(325, 352, 59, 28);
  480.         panelCheckout.add(txtCvc);
  481.         txtCvc.setColumns(10);
  482.        
  483.         txtCity = new JTextField();
  484.         txtCity.setText("City");
  485.         txtCity.setBounds(27, 494, 134, 28);
  486.         panelCheckout.add(txtCity);
  487.         txtCity.setColumns(10);
  488.        
  489.         txtState = new JTextField();
  490.         txtState.setText("State");
  491.         txtState.setBounds(171, 494, 79, 28);
  492.         panelCheckout.add(txtState);
  493.         txtState.setColumns(10);
  494.        
  495.         txtZipCode = new JTextField();
  496.         txtZipCode.setText("Zip Code");
  497.         txtZipCode.setBounds(262, 494, 122, 28);
  498.         panelCheckout.add(txtZipCode);
  499.         txtZipCode.setColumns(10);
  500.        
  501.         JButton button = new JButton("");
  502.         button.setIcon(new ImageIcon(ChairyPick.class.getResource("/img/pay-button.png")));
  503.         button.setBounds(151, 556, 122, 36);
  504.         panelCheckout.add(button);
  505.        
  506.         JLabel lblCheckout = new JLabel("Checkout");
  507.         lblCheckout.setFont(new Font("Orator Std", Font.PLAIN, 24));
  508.         lblCheckout.setBounds(161, 36, 122, 28);
  509.         panelCheckout.add(lblCheckout);
  510.        
  511.        
  512.         JPanel panelFlights = new JPanel();
  513.         frame.getContentPane().add(panelFlights, "name_1446238425531267000");
  514.        
  515.         JPanel panelTicket = new JPanel();
  516.         frame.getContentPane().add(panelTicket, "name_1446238611138342000");
  517.        
  518.         frame.setBounds(100, 100, 450, 640);
  519.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  520.     }
  521.    
  522.     private void initializeChart(){
  523.  
  524.     }
  525. }
Advertisement
Add Comment
Please, Sign In to add comment