Skip to content

Instantly share code, notes, and snippets.

@tresf
Forked from 0x000000AC/HelloGUI
Last active October 10, 2022 22:34
Show Gist options
  • Save tresf/6e2f0fb8db69457ddc4e05a41b7c7c27 to your computer and use it in GitHub Desktop.
Save tresf/6e2f0fb8db69457ddc4e05a41b7c7c27 to your computer and use it in GitHub Desktop.
Hello World using the JOptionPane
/***********************************************
* HelloGUI.java
* Aaron P. Clark, A. Tres Finocchiaro
***********************************************/
import javax.swing.*;
public class HelloGUI {
public static void main(String ... args) throws Throwable {
SwingUtilities.invokeAndWait(() -> JOptionPane.showMessageDialog(null, "Hello, World!"));
}
}
@livino2022
Copy link

imprime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment