lib/swing/j_frame.rb in swing-0.1.7 vs lib/swing/j_frame.rb in swing-0.1.8
- old
+ new
@@ -3,11 +3,11 @@
class Swing::JFrame
attr_setter :layout, :background, :size, :title,
:default_close_operation => EXIT_ON_CLOSE #DISPOSE_ON_CLOSE, HIDE_ON_CLOSE
- def initialize *args
- super *args
+ def initialize *args, &block
+ super *args, &nil
# Yielding self to set up contents before making frame visible
yield self if block_given?
self.location_relative_to = nil