The Movie Ticket System system is developed using Java. This project is suitable for java beginners who wants to improve java skills.
Paste the code Inside the Add Button
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | txtcount.setText(""); int numbers = Integer.parseInt(txtticket.getText()); int tot = numbers * 20; txttotal.setText(String.valueOf(tot)); for(int x=1; x <= numbers; x ++) { txtcount.setText(txtcount.getText()+"Your Ticket No " + x + "\n" ); } |