R
R
Rudy99662021-09-25 22:10:36
Java
Rudy9966, 2021-09-25 22:10:36

How to call a class on button click?

I have a button that, when clicked, should pop up a form that I created in another class.
image.png%20alt=
Already added addActionListener
How to make the class "InfoFram" called when clicked.
How to add code here?

class ButtonEventListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      
    }
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BorLaze, 2021-09-25
@BorLaze

You can't "call a class".
You can call a class method.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question