Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyMenuItem < javax.swing.JMenuItem
- attr_accessor :commandstring
- def initialize(str)
- super(str)
- @commandstring = str
- add_mouse_listener do |event|
- puts "the mouse did something!"
- puts event
- end
- end
- end
Add Comment
Please, Sign In to add comment