swing 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- 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
|