Sha256: 3342cb8e373fa83326b6f5d6092b9d828bbe56258738625b85c31f08a96d7614

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

require 'swing'

class Swing::JFrame

  attr_setter :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.pack
    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.12 lib/swing/j_frame.rb