Class: Swing::Panel

Inherits:
Object
  • Object
show all
Includes:
AttrSetter
Defined in:
lib/swing/old/panel.rb

Instance Method Summary collapse

Methods included from AttrSetter

dim_proc, included, #set_attributes

Constructor Details

#initialize(opts = {}) ⇒ Panel

Returns a new instance of Panel.



10
11
12
13
14
# File 'lib/swing/old/panel.rb', line 10

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

  opts[:parent].add self if opts[:parent]
end