Rock,Paper,Scissors Game: import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class RockPaperScissors extends JFrame implements ActionListener{ JButton rockButton,paperButton,scissorsButton; JLabel computerChoice; JLabel computerScoreLabel,playerScoreLabel; RockPaperScissorsAfter rockPaperScissorsAfter; public RockPaperScissors() { super(“Rock Paper Scissors”); setSize(450,574); setLayout(null); setDefaultCloseOperation(EXIT_ON_CLOSE); setLocationRelativeTo(null); rockPaperScissorsAfter=new RockPaperScissorsAfter(); addGuiComponents(); } public class RockPaperScissors extends JFrame implements ActionListener{ JButton rockButton,paperButton,scissorsButton; JLabel computerChoice; JLabel computerScoreLabel,playerScoreLabel; RockPaperScissorsAfter rockPaperScissorsAfter; public …
ONLEI Technologies project by Chandrika Read More »