Page 894 - 3-2
P. 894
if(Sedong.rr[x].equals(addr))
{
if(q==1) if(Sedong.Rn[x]>0)
Sedong.Rn[x]--;
if(q==2) Sedong.Rn[0]++;
}
}
for(int j=0;j<6;j++)
{
//System.out.println(Sedong.Rn[j]+"");
if(Sedong.Rn[j]>=1)
{
//System.out.println("green");
Sedong.R[j].setBackground
(new Color(0,0,0,100));
Sedong.contentPane.repaint();
Sedong.R[j].setBackground
(new Color(0,255,0,100));
}
else
{
//System.out.println("gray");
Sedong.R[j].setBackground
(new Color(0,0,0,100));
Sedong.contentPane.repaint();
Sedong.R[j].setBackground
(new Color(192,192,192,100));
}
Sedong.contentPane.repaint();
}
}
}
stmt.close();
conn.close();
}catch(SQLException se1){
se1.printStackTrace();
}catch(Exception ex){
ex.printStackTrace();
}finally{
try{
if(stmt!=null)
stmt.close();
}catch(SQLException se2){
}
try{
- 894 -