Sha256: d97131d4ab82374e49af1c0a727115555ba2f937c84b8af915e368bef131549d
Contents?: true
Size: 328 Bytes
Versions: 13
Compression:
Stored size: 328 Bytes
Contents
require 'swing' require 'swing/action_listener' module Swing class JButton attr_setter :enabled def initialize text, opts = {}, &block set_attributes(opts) { super(text) } self.addActionListener ActionListener.new &block opts[:parent].add self if opts[:parent] end end # class Button end
Version data entries
13 entries across 13 versions & 1 rubygems