Sha256: 000edfe31db42bb9631a7807701eff46c616435e7b2ed6ca13e0e861e4b20358

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

require 'swing/attr_setter'

module Clients

  # Swing-based GUI controls
  module Swing

    class Panel < javax.swing.JPanel
      include AttrSetter

      attr_setter :layout, :background

      def initialize opts = {}
        set_attributes(opts) {super()}

        opts[:parent].add self if opts[:parent]
      end
    end # class Panel

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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