Need a unique gift idea?
A Pastebin account makes a great Christmas gift


a guest Apr 16th, 2018 61 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. # This is the 'magical Java include line'.
  2. include Java
  4. # With the 'include Java' above, we can now refer to things that
  5. #are part of the standard Java platform via their full paths.
  6. # Creating a Java JFrame.
  7. frame ="Window")
  8. label ="Hello")
  10. # We can transparently call Java methods on Java objects, just
  11. # as if they were defined in Ruby.
  12. frame.getContentPane.add(label)  # Invoking the getContentPane
  13. frame.setDefaultCloseOperation(
  14. frame.pack
  15. frame.setVisible(true)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand