Sha256: 0e396e38371d1cbe7b018f981bfb2f0d4a6b16343e047703bfe882fca15f5804

Contents?: true

Size: 288 Bytes

Versions: 15

Compression:

Stored size: 288 Bytes

Contents

require 'swing/attr_setter'

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

Version data entries

15 entries across 15 versions & 1 rubygems

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