Sha256: f819f9b01d9f6e85665de829ec0fe98a41c8e8581a96d1fd98e316f5f4fad162
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
Rubeus::Awt.depend_on("Container", "Dimension") module Rubeus::Extensions::Javax::Swing module JComponent def self.included(base) base.module_eval do alias_method :set_preferred_size, :set_preferred_size_rubeus alias_method :preferred_size=, :set_preferred_size_rubeus end end def set_preferred_size_rubeus(*args) dimension = Rubeus::Awt::Dimension java_send :setPreferredSize, [dimension], dimension.create(*args) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubeus-0.0.8-java | lib/rubeus/extensions/javax/swing/j_component.rb |