Button class:
class SubmitButton extends JButton implements ActionListener {
public SubmitButton(String title){
super(title);
....
Where I declare it:
SubmitButton submit = new SubmitButton("Submit");
submit.setBounds(530+150, 200, 100, 25);
How does super(title) set the String title to the title of the button? How does it do the same as the method .setText() for regular JButtons?
In other words, how did calling super() do the same thing as .setText() how does super() know to change title? is .setText() the only method in JButton Class that takes in string as parameter?