moskalak
moskalak

Reputation: 271

Using JOptionPane with Xtend

I realize it might be a very stupid question, but how do I use JOptionPane with Xtend? I can't figure it out and I've been trying to get it working for a while now.

JOptionPane.showMessageDialog(getContentPane(), message); doesn't seem to work.

Eclipse gives me this error: The method or field JOptionPane is undefined for the type MyClassName

Upvotes: 0

Views: 140

Answers (1)

Sebastian Zarnekow
Sebastian Zarnekow

Reputation: 6729

Static methods or fields are accessed by double colons in Xtend:

JOptionPane::showMessageDialog(..)

Please refer to the docs for details.

Upvotes: 3

Related Questions