Question: jframe how to add button?
Answer: //add a button. JButton b = new JButton("Submit"); b. setBounds(50, 150, 100, 30); //add button to the frame. f. add(b);