Sha256: d303d5e12d5d57387d75a1e2d2c04adcb1bd11b60c05129086e266386be66fb9
Contents?: true
Size: 311 Bytes
Versions: 1
Compression:
Stored size: 311 Bytes
Contents
require 'swing/attr_setter' module Clients # Swing-based Menu elements module Swing class Menu < javax.swing.JMenu include AttrSetter def initialize text, opts = {} set_attributes(opts) { super text } opts[:parent].add self if opts[:parent] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swing-0.0.2 | lib/swing/menu.rb |