Class: RPV::Swing::SwingSet::LayeredPane

Inherits:
Object
  • Object
show all
Defined in:
lib/rpv/swing/swingset.rb

Instance Method Summary collapse

Instance Method Details

#add_ordered_components(*components) ⇒ Object



189
190
191
192
193
194
195
196
197
# File 'lib/rpv/swing/swingset.rb', line 189

def add_ordered_components(*components)
  components.each do |c|
    self.add c
  end

  components.each do |c|
    self.moveToFront c
  end
end

#preferred_dimensions(width, height) ⇒ Object



185
186
187
# File 'lib/rpv/swing/swingset.rb', line 185

def preferred_dimensions(width, height)
  self.preferred_size = Dimension[width, height]
end