Should I use Swingutilities.invokeLater if I don’t directly extend Jframe?

Asked

Viewed 69 times

0

Hello. I understand that people use the method invokeLater of SwingUtilities when extending directly the class JFrame and initialize it in the method main. But what if I happen to have one JFrame as an attribute within a class which does not extend any other class, I must still use this method, no matter where exactly the JFrame, but because it is present in the code?

1 answer

0


  • I think I understand it better now. The method does something different than I imagined. Thank you for the answer!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.