Method: javaxjavax::swing::JFrame#initialize

Defined in:
lib/simple_gui_creator/jframe_helper_methods.rb

#initialize(*args) ⇒ JFrame

Returns a new instance of JFrame.



36
37
38
39
40
41
42
43
# File 'lib/simple_gui_creator/jframe_helper_methods.rb', line 36

def initialize *args
  super(*args) # we do always get here...

   # because we do this, you should *not* have to call the unsafe:

   # setDefaultCloseOperation(EXIT_ON_CLOSE)

   # which basically does a System.exit(0) when the last jframe closes. Yikes jdk, yikes.   

   #addWindowListener(CloseListener.new(self))

  dispose_on_close # don't keep running after being closed, and prevent the app from exiting! whoa!

end