Sha256: 17e0180c61ed8d3185b16cd276bf476d99c466a5639d72a659824e7a72fd2329

Contents?: true

Size: 298 Bytes

Versions: 15

Compression:

Stored size: 298 Bytes

Contents

require 'swing/action_listener'
require 'swing/attr_setter'

module Swing

  class Label < javax.swing.JLabel
    include AttrSetter

    def initialize text, opts = {}, &block
      set_attributes(opts) { super(text) }
      opts[:parent].add self if opts[:parent]
    end
  end # class Label
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
swing-0.1.16 lib/swing/old/label.rb
swing-0.1.15 lib/swing/old/label.rb
swing-0.1.14 lib/swing/old/label.rb
swing-0.1.12 lib/swing/old/label.rb
swing-0.1.10 lib/swing/old/label.rb
swing-0.1.8 lib/swing/old/label.rb
swing-0.1.7 lib/swing/old/label.rb
swing-0.1.5 lib/swing/old/label.rb
swing-0.1.4 lib/swing/old/label.rb
swing-0.1.3 lib/swing/old/label.rb
swing-0.1.2 lib/swing/old/label.rb
swing-0.1.1 lib/swing/old/label.rb
swing-0.1.0 lib/swing/old/label.rb
swing-0.0.5 lib/swing/label.rb
swing-0.0.3 lib/swing/label.rb