Method: javaxjavax::swing::JFrame#after_restored_either_way

Defined in:
lib/simple_gui_creator/jframe_helper_methods.rb

#after_restored_either_way(&block) ⇒ Object



69
70
71
72
73
74
75
76
77
# File 'lib/simple_gui_creator/jframe_helper_methods.rb', line 69

def after_restored_either_way &block
 addWindowStateListener {|e|
if e.new_state == java::awt::Frame::NORMAL
     block.call   
else
  #puts 'non restore'

end
  }
end