Skip to content

Instantly share code, notes, and snippets.

@keiono
Created May 23, 2012 22:30
Show Gist options
  • Save keiono/2778236 to your computer and use it in GitHub Desktop.
Save keiono/2778236 to your computer and use it in GitHub Desktop.
importPackage( Packages.javax.swing );
JOptionPane.showMessageDialog(
null, "Hello Cytoscape!", "JavaScript on Cytoscape",
Packages.javax.swing.JOptionPane.INFORMATION_MESSAGE
);
require 'java'
include_class 'javax.swing.JOptionPane'
JOptionPane.showMessageDialog(
nil, "Hello Cytoscape!", "JRuby on Cytoscape",
JOptionPane::INFORMATION_MESSAGE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment