Class: Java::JavaxSwing::JMenuBar

Inherits:
Object
  • Object
show all
Defined in:
lib/swing4rb.rb

Instance Method Summary collapse

Instance Method Details



141
142
143
144
145
146
147
148
# File 'lib/swing4rb.rb', line 141

def menu name
  menu = Java::JavaxSwing::JMenu.new name
  if block_given?
    yield menu
  end
  self.add menu
  menu
end