Sha256: c52e6e31d690e448077eb3f7d00a88c4b7ded96912429872cf364ee5b6ca8a22

Contents?: true

Size: 510 Bytes

Versions: 2

Compression:

Stored size: 510 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 attributes
#    a = super
#    a.delete :tool_tip_text
#    a
#  end

  def initialize *args
    p args
    super *args

    setup

    self.location_relative_to = nil
    self.visible = true
  end

  # Method that subclasses should override to set up their contents before
  # JFrame is made visible
  def setup
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swing-0.1.5 lib/swing/j_frame.rb
swing-0.1.4 lib/swing/j_frame.rb