Skip to content

Instantly share code, notes, and snippets.

@emres
Created August 3, 2011 18:10
Show Gist options
  • Save emres/1123354 to your computer and use it in GitHub Desktop.
Save emres/1123354 to your computer and use it in GitHub Desktop.
Adaptation of the JRuby swing demo code from the JRuby Wikipedia article
/*
*
* Adaptation of the JRuby swing demo code from the Wikipedia article at
* http://en.wikipedia.org/wiki/JRuby#JRuby_calling_Java
*
* */
var frame = new javax.swing.JFrame
frame.getContentPane.add(new javax.swing.JLabel("Hello, World!"))
frame.setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE)
frame.pack
frame.setVisible(true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment