swing 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/HISTORY +4 -0
- data/VERSION +1 -1
- data/lib/swing/j_frame.rb +4 -4
- metadata +1 -1
data/HISTORY
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/swing/j_frame.rb
CHANGED
@@ -4,21 +4,21 @@ class Swing::JFrame
|
|
4
4
|
# include AttrSetter
|
5
5
|
|
6
6
|
attr_setter :layout, :background, :size, :title,
|
7
|
-
:default_close_operation =>
|
7
|
+
:default_close_operation => EXIT_ON_CLOSE #DISPOSE_ON_CLOSE, HIDE_ON_CLOSE
|
8
8
|
|
9
9
|
def initialize *args
|
10
10
|
|
11
11
|
super *args
|
12
12
|
|
13
|
-
|
13
|
+
setup
|
14
14
|
|
15
15
|
self.location_relative_to = nil
|
16
16
|
self.visible = true
|
17
17
|
end
|
18
18
|
|
19
19
|
# Method that subclasses should override to set up their contents before
|
20
|
-
#
|
21
|
-
def setup
|
20
|
+
# JFrame is made visible
|
21
|
+
def setup
|
22
22
|
end
|
23
23
|
|
24
24
|
end
|