Sha256: 58fff581cd2fa58fe25d13b6cac46319e9bc11666deb01f9a641a578a2bacbc8
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
require 'swing/attr_setter' import javax.swing.JFrame module Clients # Swing-based GUI controls module SwingGui class Frame < JFrame include AttrSetter attr_setter :layout, :background, :size, :title, :default_close_operation => JFrame::EXIT_ON_CLOSE #DISPOSE_ON_CLOSE, HIDE_ON_CLOSE def initialize name, opts = {} set_attributes(opts) { super(name) } setup opts self.location_relative_to = nil self.visible = true end # Method that subclasses should override to set up their contents before # Frame is made visible def setup opts end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swing-0.0.1 | lib/swing/frame.rb |