Coming from .NET i am so used calling Alert() in desktop apps. However in this java desktop app, I just want to alert a message saying \"thank you for using java\" I have to
Even without importing swing, you can get the call in one, all be it long, string. Otherwise just use the swing import and simple call:
JOptionPane.showMessageDialog(null, "Thank you for using Java", "Yay, java", JOptionPane.PLAIN_MESSAGE);
Easy enough.