Class: JPanelLeftBoundExample

Inherits:
Frame
  • Object
show all
Includes:
SwingParadise::BaseModule
Defined in:
lib/swing_paradise/examples/004_jpanel_left_bound_example.rb

Constant Summary

Constants included from SwingParadise

SwingParadise::LAST_UDPATE, SwingParadise::VERSION

Instance Method Summary collapse

Methods included from SwingParadise::BaseModule

#bold_text, #checkbox, #combo_box, #commandline_arguments?, #create_boxlayout, #create_grid, #default_close, #do_quit, #empty_border, #entry, #first_argument?, #hbox, #infer_the_namespace, #is_visible, #java_colour, #jbutton, #jlabel, #jpanel, #jscroll_pane, #jtextarea, #make_bold, #namespace?, #password_field, #quit_button, #reset_the_internal_hash, #return_pwd, #right_aligned_label, #set_commandline_arguments, #text, #this_file_was_not_found, #use_jruby?, #vbox, #word_wrap

Methods included from SwingParadise

#jcombobox, #jframe, #jruby_font, #jtextview, #quit_button, remove_html, #show_message_dialog, #swing_dimension, text, #text

Constructor Details

#initializeJPanelLeftBoundExample

#

initialize

#


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/swing_paradise/examples/004_jpanel_left_bound_example.rb', line 20

def initialize
	super('JPanelLeftBoundExample Example')
	set_size(480, 180)
	panel = create_panel { :left }
   panel.set_font(Font.new('Calibri', Font::PLAIN, 42))
   panel.hint = 'A jpanel left-bound example'

	b1 = button('1')
	b1.on_clicked {
		  e 'I WAS CLICKED'
	  }

	b2 = button('2')

	b3 = button('3')

	panel.batch_add(b1, b2, b3)
	add(panel, BorderLayout::NORTH)
end