Class: SimpleGuiCreator::FileDialog

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

Overview

awt…the native looking one…

Instance Method Summary collapse

Instance Method Details

#goObject



138
139
140
141
142
143
144
145
146
147
# File 'lib/simple_gui_creator/swing_helpers.rb', line 138

def go
  show
	  dispose # allow app to exit :P
  if get_file 
    # they picked something...
    File.expand_path(get_directory + '/' + get_file)
  else
    nil
  end
end