Movie Ticket Sales Program using Java
Posted by Samath
Last Updated: January 01, 2021
  22228

This is a movie tickets sales program written using the Java programming language. A user of the program can select the movie they want to view, date, time, and ticket quantity for either adult or child; the data entered by the user will be used to calculate the cost of the tickets (tax included in the price). The program also has to option to save the information calculated.

import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import javax.swing.JOptionPane;
import java.text.DecimalFormat;
import java.io.*;
import javax.swing.JFrame;
public class MovieTicketSales extends javax.swing.JFrame {
 
      String[][] purchasesave = new String[5][1];
      double overralltotalsale = 0;
      int overralladult = 0;
      int overrallchild = 0;
      
 
      
    public MovieTicketSales() {
        initComponents();
        
              
 
               DateFormat dateFormat = new SimpleDateFormat("EEEE, 
MMMMM dd, yyyy");
       Date date = new Date();
       lblmaindate.setText(dateFormat.format(date));
       
          
    }
 
    
    
    private void initComponents() {
 
        jLabel1 = new javax.swing.JLabel();
        lblmaindate = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        cmbtime = new javax.swing.JComboBox();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        cmbmovies = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        cmbdate = new javax.swing.JComboBox();
        jLabel7 = new javax.swing.JLabel();
        jSeparator2 = new javax.swing.JSeparator();
        cmbadult = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        cmdchild = new javax.swing.JComboBox();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        btnexit = new javax.swing.JButton();
        btnviewtotalsale = new javax.swing.JButton();
        btncomputecharge = new javax.swing.JButton();
        btnexport = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        lblTotalCOSTreport = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        lbladultticket = new javax.swing.JLabel();
        lblchildticketreport = new javax.swing.JLabel();
        lbltimeanddate = new javax.swing.JLabel();
        lbladultticketreport = new javax.swing.JLabel();
        lblmoviename1 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        lbltime = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        lblGCT = new javax.swing.JLabel();
        btnnew = new javax.swing.JButton();
        btnsavepurchase = new javax.swing.JButton();
        pngimagemovie = new javax.swing.JPanel();
        lblimage = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        lblTotal = new javax.swing.JLabel();
        lblsubtotal = new javax.swing.JLabel();
 
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Movie Ticket Sales");
        getContentPane().setLayout(null);
 
        jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 24)); 
        jLabel1.setText("SERA CINEPLEX");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(200, 0, 240, 30);
 
        lblmaindate.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblmaindate.setForeground(new java.awt.Color(255, 0, 0));
        lblmaindate.setText("Time & Date");
        getContentPane().add(lblmaindate);
       lblmaindate.setBounds(240, 30, 250, 20);
 
        jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12)); 
        jLabel3.setForeground(new java.awt.Color(0, 102, 255));
        jLabel3.setText("Date & Showtime");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(10, 130, 110, 15);
 
        cmbtime.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "
2:00PM", "3:00PM", "3:30PM", "4:00PM", "5:30PM", "6:00PM", "7:30PM", "8:00PM",
 "8:30PM", "9:00PM" }));
        cmbtime.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbtimeActionPerformed(evt);
            }
        });
        getContentPane().add(cmbtime);
        cmbtime.setBounds(100, 200, 100, 20);
        getContentPane().add(jSeparator1);
        jSeparator1.setBounds(110, 140, 210, 2);
 
        jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12)); 
        jLabel4.setText("Time of Show:");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(10, 200, 90, 15);
 
        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12)); 
        jLabel5.setText("Select Movie: ");
        getContentPane().add(jLabel5);
        jLabel5.setBounds(10, 90, 80, 15);
 
        cmbmovies.setModel(new javax.swing.DefaultComboBoxModel(new String[] {
 "X-Men: Days of Future Past", "Gone Girl", "If I Stay", "Walk of Shame", "God
's Pocket", "Obvious Child", "Third Person", "I Origins", "A Most Wanted Man",
 "Dolphin Tale 2", "Monkey Kingdom", "When the Game Stands Tall", "Wish I Was 
Here", "Soaked in Bleach", "How to Train Your Dragon 2", " " }));
        cmbmovies.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                cmbmoviesItemStateChanged(evt);
            }
        });
        cmbmovies.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbmoviesActionPerformed(evt);
            }
        });
        getContentPane().add(cmbmovies);
        cmbmovies.setBounds(100, 90, 230, 20);
 
        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 12)); 
        jLabel6.setText("Date of Show:");
        getContentPane().add(jLabel6);
        jLabel6.setBounds(10, 160, 80, 15);
 
        cmbdate.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "
Sunday, April 20, 2014", "Monday, April 21, 2014", "Tuesday, April 22, 2014", 
"Wednesday, April 23, 2014", "Thursday, April 24, 2014", "Friday, April 25, 20
14", "Saturday, April 26, 2014", "Sunday, April 27, 2014", "Monday, April 28, 
2014", "Tuesday, April 29, 2014", "Wednesday, April 30, 2014", "Thursday, Apri
l 31, 2014", "Friday,May 1, 2014", "Saturday, May 2, 2014", "Sunday, May 3, 20
14", "Monday, May 4, 2014", "Tuesday, May 5, 2014", "Wednesday, May 6, 2014",
 "Thursday, May 7, 2014", "Friday,May 8, 2014", "Saturday, May 9, 2014", " " }));
        cmbdate.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbdateActionPerformed(evt);
            }
        });
        getContentPane().add(cmbdate);
        cmbdate.setBounds(100, 160, 230, 20);
 
        jLabel7.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel7.setForeground(new java.awt.Color(0, 102, 255));
        jLabel7.setText("Ticket Quantity");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(10, 240, 110, 15);
        getContentPane().add(jSeparator2);
        jSeparator2.setBounds(100, 250, 220, 10);
 
        cmbadult.setModel(new javax.swing.DefaultComboBoxModel(new String[] { 
"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", " ", " " }));
        cmbadult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmbadultActionPerformed(evt);
            }
        });
        getContentPane().add(cmbadult);
        cmbadult.setBounds(50, 270, 50, 20);
 
        jLabel8.setFont(new java.awt.Font("Tahoma", 0, 12)); 
        jLabel8.setText("Adult:");
        getContentPane().add(jLabel8);
        jLabel8.setBounds(10, 270, 40, 15);
 
        cmdchild.setModel(new javax.swing.DefaultComboBoxModel(new String[] { 
"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", " " }));
        cmdchild.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cmdchildActionPerformed(evt);
            }
        });
        getContentPane().add(cmdchild);
        cmdchild.setBounds(50, 300, 50, 20);
 
        jLabel9.setFont(new java.awt.Font("Tahoma", 0, 12)); 
        jLabel9.setText("Child:");
        getContentPane().add(jLabel9);
        jLabel9.setBounds(10, 300, 40, 15);
 
        jLabel10.setText("Total: ");
        getContentPane().add(jLabel10);
        jLabel10.setBounds(140, 310, 70, 14);
 
        jLabel12.setText("GCT(17.5%):");
        getContentPane().add(jLabel12);
        jLabel12.setBounds(140, 290, 80, 14);
 
        btnexit.setText("Exit");
        btnexit.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnexitActionPerformed(evt);
            }
        });
        getContentPane().add(btnexit);
        btnexit.setBounds(510, 340, 80, 23);
 
        btnviewtotalsale.setText("View Total Sales");
        btnviewtotalsale.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnviewtotalsaleActionPerformed(evt);
            }
        });
        getContentPane().add(btnviewtotalsale);
        btnviewtotalsale.setBounds(220, 500, 140, 23);
 
        btncomputecharge.setText("Compute Charge");
        btncomputecharge.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btncomputechargeActionPerformed(evt);
            }
        });
        getContentPane().add(btncomputecharge);
        btncomputecharge.setBounds(130, 340, 130, 23);
 
        btnexport.setText("Export");
        btnexport.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnexportActionPerformed(evt);
            }
        });
        getContentPane().add(btnexport);
        btnexport.setBounds(400, 340, 100, 23);
 
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setLayout(null);
 
        lblTotalCOSTreport.setText(" ");
        jPanel1.add(lblTotalCOSTreport);
        lblTotalCOSTreport.setBounds(150, 90, 350, 14);
 
        jLabel14.setText("Movie Name: ");
        jPanel1.add(jLabel14);
        jLabel14.setBounds(10, 10, 100, 14);
 
        lbladultticket.setText("Adult Ticket(s): ");
        jPanel1.add(lbladultticket);
        lbladultticket.setBounds(10, 30, 110, 14);
 
        lblchildticketreport.setText(" ");
        jPanel1.add(lblchildticketreport);
        lblchildticketreport.setBounds(150, 50, 230, 14);
 
        lbltimeanddate.setText(" ");
        jPanel1.add(lbltimeanddate);
        lbltimeanddate.setBounds(150, 70, 390, 14);
 
        lbladultticketreport.setText(" ");
        jPanel1.add(lbladultticketreport);
        lbladultticketreport.setBounds(150, 30, 390, 14);
 
        lblmoviename1.setText(" ");
        jPanel1.add(lblmoviename1);
        lblmoviename1.setBounds(150, 10, 390, 14);
 
        jLabel19.setText("Child Ticket(s): ");
        jPanel1.add(jLabel19);
        jLabel19.setBounds(10, 50, 110, 14);
 
        lbltime.setText("Show Date & Time: ");
        jPanel1.add(lbltime);
        lbltime.setBounds(10, 70, 130, 14);
 
        jLabel13.setText("Total Cost: ");
        jPanel1.add(jLabel13);
        jLabel13.setBounds(10, 90, 140, 14);
 
        getContentPane().add(jPanel1);
        jPanel1.setBounds(10, 370, 580, 120);
 
        lblGCT.setText("0");
        getContentPane().add(lblGCT);
        lblGCT.setBounds(240, 290, 90, 14);
 
        btnnew.setText("New");
        btnnew.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnnewActionPerformed(evt);
            }
        });
        getContentPane().add(btnnew);
        btnnew.setBounds(10, 340, 110, 23);
 
        btnsavepurchase.setText("Save Purchase");
        btnsavepurchase.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnsavepurchaseActionPerformed(evt);
            }
        });
        getContentPane().add(btnsavepurchase);
        btnsavepurchase.setBounds(270, 340, 120, 23);
 
        pngimagemovie.setBorder(javax.swing.BorderFactory.createEtchedBorder());
 
        lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("/im
ages/xmendaysoffuturepast.jpg")));
        lblimage.setText("");
 
        javax.swing.GroupLayout pngimagemovieLayout = new javax.swing.GroupLay
out(pngimagemovie);
        pngimagemovie.setLayout(pngimagemovieLayout);
        pngimagemovieLayout.setHorizontalGroup(
            pngimagemovieLayout.createParallelGroup(javax.swing.GroupLayout.Al
ignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, pngimagemovi
eLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.M
AX_VALUE)
                .addComponent(lblimage, javax.swing.GroupLayout.PREFERRED_SIZE
, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35))
        );
        pngimagemovieLayout.setVerticalGroup(
            pngimagemovieLayout.createParallelGroup(javax.swing.GroupLayout.Al
ignment.LEADING)
            .addComponent(lblimage, javax.swing.GroupLayout.DEFAULT_SIZE, 266,
 Short.MAX_VALUE)
        );
 
        getContentPane().add(pngimagemovie);
        pngimagemovie.setBounds(380, 60, 190, 270);
 
        jLabel18.setText("Sub-Total: ");
        getContentPane().add(jLabel18);
        jLabel18.setBounds(140, 270, 70, 14);
 
        lblTotal.setText("0");
        getContentPane().add(lblTotal);
        lblTotal.setBounds(240, 310, 90, 14);
 
        lblsubtotal.setText("0");
        getContentPane().add(lblsubtotal);
        lblsubtotal.setBounds(240, 270, 90, 14);
 
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        getContentPane().setLayout(null);
        pack();
        setSize(610,570);
        setVisible(true);
    }
 
    private void cmbtimeActionPerformed(java.awt.event.ActionEvent evt) {
    }
 
    private void cmbmoviesActionPerformed(java.awt.event.ActionEvent evt) {
       if((String)cmbmovies.getSelectedItem() == "Gone Girl")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/gonegirl.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "God's Pocket")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/godspocket.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "Obvious Child")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/obviouschild.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "X-Men: Days of Future P
ast")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/xmendaysoffuturepast.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "Third Person")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/thirdperson.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "I Origins")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/iorigins.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "A Most Wanted Man")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/amostwantedman.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "Dolphin Tale 2")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/dolphintale2.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "Monkey Kingdom")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/monkeykingdom.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "When the Game Stands Tall")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/whenthegamestandstall.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "Walk of Shame")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/walkofshame.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "If I Stay")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/ifistay.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "Wish I Was Here")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/wishiwashere.jpg"))); 
       }
       else if((String)cmbmovies.getSelectedItem() == "How to Train Your Dragon 2")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/howtotrainyourdragon2.jpg")));
       }
       else if((String)cmbmovies.getSelectedItem() == "Soaked in Bleach")
       {
           lblimage.setIcon(new javax.swing.ImageIcon(getClass().getResource("
/images/soakedinbleach.jpg"))); 
 
       }
    }
 
    private void cmbdateActionPerformed(java.awt.event.ActionEvent evt) {
    }
 
    private void cmbadultActionPerformed(java.awt.event.ActionEvent evt) {
    }
 
    private void cmdchildActionPerformed(java.awt.event.ActionEvent evt) {
    }
 
    private void btnexitActionPerformed(java.awt.event.ActionEvent evt) {
       System.exit(0);
    }
 
    private void btnviewtotalsaleActionPerformed(java.awt.event.ActionEvent evt) {
 
      DecimalFormat formatter = new DecimalFormat("$#,###.00");
        JOptionPane.showMessageDialog(null,"Ticket Sold\n\n Adult: "+Integer.t
oString(overralladult)+"     Child: "+Integer.toString(overrallchild)+"\n\nTot
al Sales: "+formatter.format(overralltotalsale));
    }
 
    private void btncomputechargeActionPerformed(java.awt.event.ActionEvent ev
t) {
     final double AdultCONST = 600.00;
     final double ChildCONST  = 350.00;
     double subtotal = 0;
     double childsubtotal = 0;
     double adultsubtotal = 0;
     double tax = 0;
     double total = 0;
     
      DecimalFormat formatter = new DecimalFormat("$#,###.00");
     
     String adultstring = (String)cmbadult.getSelectedItem();
      String childstring = (String)cmdchild.getSelectedItem();
      
      int adult = Integer.parseInt(adultstring);
      int child = Integer.parseInt(childstring);
      
      childsubtotal = child * ChildCONST;
      adultsubtotal  = adult * AdultCONST;
      
      subtotal = childsubtotal+adultsubtotal;
      
      tax = 0.175*subtotal;
      
      total = tax + subtotal;
      
      lblsubtotal.setText(formatter.format(subtotal));
      lblGCT.setText(formatter.format(tax));
      lblTotal .setText(formatter.format(total));
      
      overralltotalsale = overralltotalsale+total;
      overralladult = overralladult + Integer.parseInt((String)cmbadult.getSelectedItem());
      overrallchild = overrallchild  +  Integer.parseInt((String)cmdchild.getSelectedItem());
      
      
    
    }
 
    private void btnsavepurchaseActionPerformed(java.awt.event.ActionEvent evt) {
        lblmoviename1.setText((String)cmbmovies.getSelectedItem());
        lbladultticketreport.setText((String)cmbadult.getSelectedItem());
        lblchildticketreport.setText((String)cmdchild.getSelectedItem());
        lbltimeanddate.setText((String)cmbdate.getSelectedItem()+ " :: " +
(String)cmbtime.getSelectedItem());
        lblTotalCOSTreport.setText(lblTotal.getText());
        
        purchasesave[0][0] = "Movie Name: " + (String)cmbmovies.getSelectedItem();
        purchasesave[1][0] = "Adult Ticket(s): "+(String)cmbadult.getSelectedItem();
        purchasesave[2][0] = "Child Ticket(s): "+(String)cmdchild.getSelectedItem();
        purchasesave[3][0] = "Show Date & Time: "+(String)cmbdate.getSelectedI
tem()+ " :: " +(String)cmbtime.getSelectedItem();
        purchasesave[4][0] = "Total Cost: "+lblTotal.getText();
    }
 
    private void btnexportActionPerformed(java.awt.event.ActionEvent evt) {
    try {
        BufferedWriter out = new BufferedWriter(new FileWriter("movie.txt",true));
        out.newLine();
         for(int i=0;i<5;i++)
         {
              out.write(purchasesave[i][0]); 
              out.newLine();
         }
           
            out.close();
            
            JOptionPane.showMessageDialog(null,"successfully exported to file");
        }
        catch (IOException e)
        {
            System.out.println("Exception ");       
        }
    }
 
    private void btnnewActionPerformed(java.awt.event.ActionEvent evt) {
        lblmoviename1.setText(" ");
        lbladultticketreport.setText(" ");
        lblchildticketreport.setText(" ");
        lbltimeanddate.setText(" ");
        lblTotalCOSTreport.setText(" ");
        
        cmbmovies.setSelectedIndex(0);
        cmbadult.setSelectedIndex(0);
        cmdchild.setSelectedIndex(0);
        cmbdate.setSelectedIndex(0);
        cmbtime.setSelectedIndex(0);
        lblTotal.setText("0");
        lblGCT.setText("0");
        lblsubtotal.setText("0");
    }
 
    private void cmbmoviesItemStateChanged(java.awt.event.ItemEvent evt) {   
    }
 
 
    public static void main(String args[]) {
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIMa
nager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MovieTicketSales.class.getName(
)).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MovieTicketSales.class.getName(
)).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MovieTicketSales.class.getName(
)).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MovieTicketSales.class.getName(
)).log(java.util.logging.Level.SEVERE, null, ex);
        }
        
 
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MovieTicketSales().setVisible(true); 
            }
        });
 
    }
 
    private javax.swing.JButton btncomputecharge;
    private javax.swing.JButton btnexit;
    private javax.swing.JButton btnexport;
    private javax.swing.JButton btnnew;
    private javax.swing.JButton btnsavepurchase;
    private javax.swing.JButton btnviewtotalsale;
    private javax.swing.JComboBox cmbadult;
    private javax.swing.JComboBox cmbdate;
    private javax.swing.JComboBox cmbmovies;
    private javax.swing.JComboBox cmbtime;
    private javax.swing.JComboBox cmdchild;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JLabel lblGCT;
    private javax.swing.JLabel lblTotal;
    private javax.swing.JLabel lblTotalCOSTreport;
    private javax.swing.JLabel lbladultticket;
    private javax.swing.JLabel lbladultticketreport;
    private javax.swing.JLabel lblchildticketreport;
    private javax.swing.JLabel lblimage;
    private javax.swing.JLabel lblmaindate;
    private javax.swing.JLabel lblmoviename1;
    private javax.swing.JLabel lblsubtotal;
    private javax.swing.JLabel lbltime;
    private javax.swing.JLabel lbltimeanddate;
    private javax.swing.JPanel pngimagemovie;
}
   
  
 
 
   

 
 
Great! I like it.
 
Thank you
 
proud to say i'm learning java and can understand some of it :)
 
Wonderful... keep it up.
 
hello, Mr. Samath......I use your code in netbeans......but still it doesn't work... :(...what can I do in this time....please send me full file with image....if u don't mind....really love this interface.....:)
 
ok
 
Could you please send me your save file plus the image? Really appreciate it if you would
 
Hello , Could you please send me your save file, i realy need that ;S
 
GRATE WORKS! CAN U SEND ME FULL VERSION PLEASE