swing 0.1.3 → 0.1.4
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 +6 -6
- data/spec/swing/j_frame_spec.rb +17 -0
- metadata +3 -1
data/HISTORY
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/swing/j_frame.rb
CHANGED
@@ -5,14 +5,14 @@ class Swing::JFrame
|
|
5
5
|
attr_setter :layout, :background, :size, :title,
|
6
6
|
:default_close_operation => EXIT_ON_CLOSE #DISPOSE_ON_CLOSE, HIDE_ON_CLOSE
|
7
7
|
|
8
|
-
def attributes
|
9
|
-
a = super
|
10
|
-
a.delete :tool_tip_text
|
11
|
-
a
|
12
|
-
end
|
8
|
+
# def attributes
|
9
|
+
# a = super
|
10
|
+
# a.delete :tool_tip_text
|
11
|
+
# a
|
12
|
+
# end
|
13
13
|
|
14
14
|
def initialize *args
|
15
|
-
|
15
|
+
p args
|
16
16
|
super *args
|
17
17
|
|
18
18
|
setup
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'swing/shared'
|
3
|
+
|
4
|
+
describe Swing::JFrame do
|
5
|
+
|
6
|
+
context 'creation' do
|
7
|
+
let(:new_args) { ['Text'] }
|
8
|
+
|
9
|
+
it_behaves_like 'enhanced awt component'
|
10
|
+
|
11
|
+
it 'is possible to create frame' do
|
12
|
+
f = Swing::JFrame.new "Swing GUI",
|
13
|
+
:layout => Awt::FlowLayout.new(Awt::FlowLayout::LEFT),
|
14
|
+
:size => [1100, 1200]
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: swing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- arvicco
|
@@ -88,6 +88,7 @@ files:
|
|
88
88
|
- spec/awt/component_spec.rb
|
89
89
|
- spec/swing/j_button_spec.rb
|
90
90
|
- spec/swing/j_check_box_spec.rb
|
91
|
+
- spec/swing/j_frame_spec.rb
|
91
92
|
- spec/swing/j_label_spec.rb
|
92
93
|
- spec/swing/shared.rb
|
93
94
|
- features/swing.feature
|
@@ -145,5 +146,6 @@ test_files:
|
|
145
146
|
- spec/awt/component_spec.rb
|
146
147
|
- spec/swing/j_button_spec.rb
|
147
148
|
- spec/swing/j_check_box_spec.rb
|
149
|
+
- spec/swing/j_frame_spec.rb
|
148
150
|
- spec/swing/j_label_spec.rb
|
149
151
|
- spec/swing/shared.rb
|