On Tue, 16 Feb 2021 15:26:38 GMT, Amresh Sahu <github.com+72060147+amresh-s...@openjdk.org> wrote:
> > > init method is part of applet version of test case. It needs to be completely > converted to java version. I will do the appropriate changes. No, it's not necessary. I meant the opposite. You can create an instance of the test class and call init(): SwingUtilities.invokeAndWait(() -> new bug6698013().init()); Moreover, Swing components should be created and manipulated on EDT, which does not hold for the current main(). ------------- PR: https://git.openjdk.java.net/jdk/pull/2587