Sha256: e13d5548039f191c363f3fc2bb1ac0c906eb8059ce3573a7fa3be543efe68b12

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

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

module Clients
  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
swing-0.0.2 lib/swing/label.rb