Class: FrameExample
- Inherits:
-
Frame
- Object
- Frame
- FrameExample
- Includes:
- SwingParadise::BaseModule
- Defined in:
- lib/swing_paradise/examples/006_frame_example.rb
Constant Summary
Constants included from SwingParadise
SwingParadise::LAST_UDPATE, SwingParadise::VERSION
Instance Method Summary collapse
-
#initialize ⇒ FrameExample
constructor
# === initialize ========================================================================= #.
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
#initialize ⇒ FrameExample
#
initialize
#
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/swing_paradise/examples/006_frame_example.rb', line 13 def initialize super('FrameExample Example') set_size(480, 180) panel = JPanel.new(GridLayout.new(7, 1, 5, 5)) panel.set_font(Font.new('Calibri', Font::PLAIN, 62)) panel.setBorder( BorderFactory.uniform_border(20) ) _ = BorderFactory.createTitledBorder(" Frame") panel.setBorder(_) _ = bold_text('Examples') _.set_font(Font.new('Calibri', Font::PLAIN, 40)) panel.add(_, JLabel::CENTER) add(panel, BorderLayout::NORTH) end |