Sha256: b059b6525c0bc39e28bf330576c7f1bc7beebf7d209b3689dfc3d81745ee0830

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

require 'swing'

class Swing::JFrame

  attr_setter :layout, :background, :size, :title,
              :default_close_operation => EXIT_ON_CLOSE #DISPOSE_ON_CLOSE, HIDE_ON_CLOSE

  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
    self.visible = true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
swing-0.1.8 lib/swing/j_frame.rb