File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,10 @@ public class LaneView implements LaneObserver, ActionListener {
33
33
JLabel [][] scoreLabel ;
34
34
JPanel [][] ballGrid ;
35
35
JPanel [] pins ;
36
-
36
+ GeneralView gview = new GeneralView ();
37
37
JButton maintenance ;
38
38
Lane lane ;
39
- public void addButton (JButton mybutton ,JPanel myPanel ) {
40
- myPanel .setLayout (new FlowLayout ());
41
- mybutton .addActionListener (this );
42
- myPanel .add (mybutton );
43
-
44
- }
39
+
45
40
public LaneView (Lane lane , int laneNum ) {
46
41
47
42
this .lane = lane ;
@@ -161,7 +156,7 @@ public void receiveLaneEvent(LaneEvent le) {
161
156
162
157
maintenance = new JButton ("Maintenance Call" );
163
158
JPanel maintenancePanel = new JPanel ();
164
- addButton (maintenance ,maintenancePanel );
159
+ gview . addButton (maintenance ,maintenancePanel );
165
160
buttonPanel .add (maintenancePanel );
166
161
167
162
cpanel .add (buttonPanel , "South" );
You can’t perform that action at this time.
0 commit comments