Class: Swing::Frame

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

Instance Method Summary collapse

Methods included from AttrSetter

dim_proc, included, #set_attributes

Constructor Details

#initialize(name, opts = {}) ⇒ Frame

Returns a new instance of Frame.



13
14
15
16
17
18
19
20
21
# File 'lib/swing/old/frame.rb', line 13

def initialize name, opts = {}

  set_attributes(opts) { super(name) }

  setup opts

  self.location_relative_to = nil
  self.visible = true
end

Instance Method Details

#setup(opts) ⇒ Object

Method that subclasses should override to set up their contents before Frame is made visible



25
26
# File 'lib/swing/old/frame.rb', line 25

def setup opts
end