Class: Java::JavaxSwing::JFrame
- Inherits:
-
Object
- Object
- Java::JavaxSwing::JFrame
- Defined in:
- lib/sweet/swing/frame.rb
Instance Method Summary collapse
Instance Method Details
#sweeten(opts = {}, &block) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/sweet/swing/frame.rb', line 4 def sweeten(opts = {}, &block) w, h = opts.delete(:width), opts.delete(:height) super(self, opts, &block) pack size = (w || width), (h || height) end |