Hai Bi
Hai Bi

Reputation: 1173

Is static assignment of Swing object OK?

For example: can this be used in a class MyPane?

public class MyPane extends JRootPane{
    public static JCheckBox Debug= new JCheckBox("Debug");
....
}

Will Swing have problem? Should we always put these assignment in invokeLater? Thanks.

Upvotes: 1

Views: 137

Answers (0)

Related Questions