Flashing JTextField and JButton
问题 //ADDING BET FIELDS setLayout(null); horseChoice = new JTextField(); horseChoice.setBounds(200, 585, 300, 20); add(horseChoice); setLayout(null); horseBet = new JTextField(); horseBet.setBounds(200, 625, 300, 20); add(horseBet); //ADDING BET BUTTON setLayout(null); bet = new JButton("Place Bet"); bet.setBounds(250, 675, 200, 50); add(bet); I am trying to create two textfields where the users can type in what they want and a button to save their input to a variable. But when I run my program,