@@ -57,15 +57,15 @@ public class TeamLogo extends JPanel{
57
57
58
58
private void setCentral(){
59
59
CHI.setLocation(15, 0);
60
- MyLabel chiLabel = new MyLabel("Bulls", new Dimension(120,20), 5 , 90);
60
+ MyLabel chiLabel = new MyLabel("Bulls", new Dimension(120,20), (int) (CHI.getX()-CHI.getWidth()/6.5) , 90);
61
61
CLE.setLocation(15, 120);
62
- MyLabel cleLabel = new MyLabel("Cavaliers", new Dimension(120,20), 5 , 210);
62
+ MyLabel cleLabel = new MyLabel("Cavaliers", new Dimension(120,20), (int) (CHI.getX()-CHI.getWidth()/6.5) , 210);
63
63
DET.setLocation(15, 240);
64
- MyLabel detLabel = new MyLabel("Pistons", new Dimension(120,20), 5 , 330);
64
+ MyLabel detLabel = new MyLabel("Pistons", new Dimension(120,20), (int) (CHI.getX()-CHI.getWidth()/6.5) , 330);
65
65
IND.setLocation(15, 360);
66
- MyLabel indLabel = new MyLabel("Pacers", new Dimension(120,20), 5 , 450);
66
+ MyLabel indLabel = new MyLabel("Pacers", new Dimension(120,20), (int) (CHI.getX()-CHI.getWidth()/6.5) , 450);
67
67
MIL.setLocation(15, 480);
68
- MyLabel milLabel = new MyLabel("Bucks", new Dimension(120,20), 5 , 570);
68
+ MyLabel milLabel = new MyLabel("Bucks", new Dimension(120,20), (int) (CHI.getX()-CHI.getWidth()/6.5) , 570);
69
69
add(CHI);
70
70
add(CLE);
71
71
add(DET);
@@ -80,15 +80,15 @@ public class TeamLogo extends JPanel{
80
80
81
81
private void setAtlantic(){
82
82
BKN.setLocation(153, 0);
83
- MyLabel bknLabel = new MyLabel("Nets", new Dimension(120,20), 143 , 90);
83
+ MyLabel bknLabel = new MyLabel("Nets", new Dimension(120,20), (int) (BKN.getX()-BKN.getWidth()/6.5) , 90);
84
84
NYK.setLocation(153, 120);
85
- MyLabel nykLabel = new MyLabel("Knicks", new Dimension(120,20), 143 , 210);
85
+ MyLabel nykLabel = new MyLabel("Knicks", new Dimension(120,20), (int) (BKN.getX()-BKN.getWidth()/6.5) , 210);
86
86
PHI.setLocation(153, 240);
87
- MyLabel phiLabel = new MyLabel("76ers", new Dimension(120,20), 143 , 330);
87
+ MyLabel phiLabel = new MyLabel("76ers", new Dimension(120,20), (int) (BKN.getX()-BKN.getWidth()/6.5) , 330);
88
88
TOR.setLocation(153, 360);
89
- MyLabel torLabel = new MyLabel("Raptors", new Dimension(120,20), 143 , 450);
89
+ MyLabel torLabel = new MyLabel("Raptors", new Dimension(120,20), (int) (BKN.getX()-BKN.getWidth()/6.5) , 450);
90
90
BOS.setLocation(153, 480);
91
- MyLabel bosLabel = new MyLabel("Celtics", new Dimension(120,20), 143 , 570);
91
+ MyLabel bosLabel = new MyLabel("Celtics", new Dimension(120,20), (int) (BKN.getX()-BKN.getWidth()/6.5) , 570);
92
92
add(BKN);
93
93
add(NYK);
94
94
add(PHI);
@@ -103,15 +103,15 @@ public class TeamLogo extends JPanel{
103
103
104
104
private void setSouthEast(){
105
105
ATL.setLocation(290, 0);
106
- MyLabel atlLabel = new MyLabel("Hawks", new Dimension(120,20), 290 , 90);
106
+ MyLabel atlLabel = new MyLabel("Hawks", new Dimension(120,20), (int) (ATL.getX()-ATL.getWidth()/6.5) , 90);
107
107
CHA.setLocation(290, 120);
108
- MyLabel chaLabel = new MyLabel("Hornets", new Dimension(120,20), 290 , 210);
108
+ MyLabel chaLabel = new MyLabel("Hornets", new Dimension(120,20), (int) (ATL.getX()-ATL.getWidth()/6.5) , 210);
109
109
MIA.setLocation(290, 240);
110
- MyLabel miaLabel = new MyLabel("Heat", new Dimension(120,20), 290 , 330);
110
+ MyLabel miaLabel = new MyLabel("Heat", new Dimension(120,20), (int) (ATL.getX()-ATL.getWidth()/6.5) , 330);
111
111
ORL.setLocation(290, 360);
112
- MyLabel orlLabel = new MyLabel("Magic", new Dimension(120,20), 290 , 450);
112
+ MyLabel orlLabel = new MyLabel("Magic", new Dimension(120,20), (int) (ATL.getX()-ATL.getWidth()/6.5) , 450);
113
113
WAS.setLocation(290, 480);
114
- MyLabel wasLabel = new MyLabel("Wizards", new Dimension(120,20), 290 , 570);
114
+ MyLabel wasLabel = new MyLabel("Wizards", new Dimension(120,20), (int) (ATL.getX()-ATL.getWidth()/6.5) , 570);
115
115
add(ATL);
116
116
add(atlLabel);
117
117
add(CHA);
@@ -126,15 +126,15 @@ public class TeamLogo extends JPanel{
126
126
127
127
private void setNorthWest(){
128
128
DEN.setLocation(428, 0);
129
- MyLabel denLabel = new MyLabel("Nuggets", new Dimension(120,20), 418 , 90);
129
+ MyLabel denLabel = new MyLabel("Nuggets", new Dimension(120,20), (int) (DEN.getX()-DEN.getWidth()/6.5) , 90);
130
130
MIN.setLocation(428, 120);
131
- MyLabel minLabel = new MyLabel("Timberwolves", new Dimension(120,20), 418 , 210);
131
+ MyLabel minLabel = new MyLabel("Timberwolves", new Dimension(120,20), (int) (DEN.getX()-DEN.getWidth()/6.5) , 210);
132
132
OKC.setLocation(428, 240);
133
- MyLabel okcLabel = new MyLabel("Thunder", new Dimension(120,20), 418 , 330);
133
+ MyLabel okcLabel = new MyLabel("Thunder", new Dimension(120,20), (int) (DEN.getX()-DEN.getWidth()/6.5) , 330);
134
134
POR.setLocation(428, 360);
135
- MyLabel porLabel = new MyLabel("Trail Blazers", new Dimension(120,20), 418 , 450);
135
+ MyLabel porLabel = new MyLabel("Trail Blazers", new Dimension(120,20), (int) (DEN.getX()-DEN.getWidth()/6.5) , 450);
136
136
UTA.setLocation(428, 480);
137
- MyLabel utaLabel = new MyLabel("Jazz", new Dimension(120,20), 418 , 570);
137
+ MyLabel utaLabel = new MyLabel("Jazz", new Dimension(120,20), (int) (DEN.getX()-DEN.getWidth()/6.5) , 570);
138
138
add(DEN);
139
139
add(MIN);
140
140
add(OKC);
@@ -149,15 +149,15 @@ public class TeamLogo extends JPanel{
149
149
150
150
private void setSouthWest(){
151
151
DAL.setLocation(702, 0);
152
- MyLabel dalLabel = new MyLabel("Mavericks", new Dimension(120,20), 692 , 90);
152
+ MyLabel dalLabel = new MyLabel("Mavericks", new Dimension(120,20), (int) (DAL.getX()-DAL.getWidth()/6.5) , 90);
153
153
HOU.setLocation(702, 120);
154
- MyLabel houLabel = new MyLabel("Rockets", new Dimension(120,20), 692 , 210);
154
+ MyLabel houLabel = new MyLabel("Rockets", new Dimension(120,20), (int) (DAL.getX()-DAL.getWidth()/6.5) , 210);
155
155
MEM.setLocation(702, 240);
156
- MyLabel memLabel = new MyLabel("Grizzlies", new Dimension(120,20), 692 , 330);
156
+ MyLabel memLabel = new MyLabel("Grizzlies", new Dimension(120,20), (int) (DAL.getX()-DAL.getWidth()/6.5) , 330);
157
157
NOP.setLocation(702, 360);
158
- MyLabel nopLabel = new MyLabel("Pelicans", new Dimension(120,20), 692 , 450);
158
+ MyLabel nopLabel = new MyLabel("Pelicans", new Dimension(120,20), (int) (DAL.getX()-DAL.getWidth()/6.5) , 450);
159
159
SAS.setLocation(702, 480);
160
- MyLabel sasLabel = new MyLabel("Spurs", new Dimension(120,20), 692 , 570);
160
+ MyLabel sasLabel = new MyLabel("Spurs", new Dimension(120,20), (int) (DAL.getX()-DAL.getWidth()/6.5) , 570);
161
161
add(DAL);
162
162
add(HOU);
163
163
add(MEM);
@@ -172,15 +172,15 @@ public class TeamLogo extends JPanel{
172
172
173
173
private void setPacific(){
174
174
GSW.setLocation(564, 0);
175
- MyLabel gswLabel = new MyLabel("Warriors", new Dimension(120,20), 564 , 90);
175
+ MyLabel gswLabel = new MyLabel("Warriors", new Dimension(120,20), (int) (GSW.getX()-GSW.getWidth()/6.5) , 90);
176
176
LAC.setLocation(564, 120);
177
- MyLabel lacLabel = new MyLabel("Clippers", new Dimension(120,20), 564 , 210);
177
+ MyLabel lacLabel = new MyLabel("Clippers", new Dimension(120,20), (int) (GSW.getX()-GSW.getWidth()/6.5) , 210);
178
178
LAL.setLocation(564, 240);
179
- MyLabel lalLabel = new MyLabel("Lakers", new Dimension(120,20), 564 , 330);
179
+ MyLabel lalLabel = new MyLabel("Lakers", new Dimension(120,20), (int) (GSW.getX()-GSW.getWidth()/6.5) , 330);
180
180
PHX.setLocation(564, 360);
181
- MyLabel phxLabel = new MyLabel("Suns", new Dimension(120,20), 564 , 450);
181
+ MyLabel phxLabel = new MyLabel("Suns", new Dimension(120,20), (int) (GSW.getX()-GSW.getWidth()/6.5) , 450);
182
182
SAC.setLocation(564, 480);
183
- MyLabel sacLabel = new MyLabel("Kings", new Dimension(120,20), 564 , 570);
183
+ MyLabel sacLabel = new MyLabel("Kings", new Dimension(120,20), (int) (GSW.getX()-GSW.getWidth()/6.5) , 570);
184
184
add(GSW);
185
185
add(LAC);
186
186
add(LAL);
0 commit comments