Page 91 - IP
P. 91

if(jList1.isSelectedIndex(2)==true)


                       {

               Total=Total+250;


               JOptionPane.showMessageDialog(null,"Mojito ordered Rs 200");

                       }


                if(jList1.isSelectedIndex(3)==true)

                       {


               Total=Total+150;


               JOptionPane.showMessageDialog(null,"Pizza ordered Rs 200");

                       }


               if(jList1.isSelectedIndex(4)==true)

                       {


               Total=Total+300;

               JOptionPane.showMessageDialog(null,"Chilly Potato ordered Rs 300");


                       }

               jTextField1.setText(Integer.toString(Total));


                               if(jCheckBox1.isSelected())


                               {

               disc=20;


                               }

               if(jCheckBox2.isSelected())


                               {


                                   disc=30;
   86   87   88   89   90   91   92   93   94   95   96