Skip to content

Commit

Permalink
button and text_field now include component-module
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkdoor committed Nov 3, 2008
1 parent dcfbaba commit 0343b72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rswing/components/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module Components

# Button-Class. Wraps JButton-Class.
class Button < JButton
include Events::FocusEvents
include Component

# - <tt>text</tt>: The Text to be displayed on the button.
# - <tt>options</tt>: Options-Hash with the following valid values:
Expand Down
2 changes: 2 additions & 0 deletions lib/rswing/components/text_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ module Components
JTextField = javax.swing.JTextField

class TextField < JTextField
include Component

# Valid options are:
# 1. <tt>:text => "text"</tt> (default: "")
# 2. <tt>:columns => 5</tt> (default: 10)
Expand Down

0 comments on commit 0343b72

Please sign in to comment.