Sha256: fa3a6053bf3eab3c640d209f29aa27b4ff75aa104fcaee4a8bf474fbdd0a60b4

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

require 'swing/attr_setter'

module Clients

  # Swing-based GUI controls
  module SwingGui

    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.1 lib/swing/panel.rb