//(c) by Valery V Shmeleff www.oflameron.ru and www.oflameron.com public void Field_Fill() { //Procedure of copying of the nominal values and the attributes from ”on duty” Label56 //to the playing area cells Label7 – Labe46 for (int i=0; i<8; i++) { Color_Chars(i); //Write the nominal values and the attributes of the cell down to Label56 cs = label56.getText(); //Write the nominal value from Label56 to the variable cs if (i == 0) label7.setText(cs); if (i == 1) label8.setText(cs); if (i == 2) label9.setText(cs); if (i == 3) label10.setText(cs); if (i == 4) label11.setText(cs); if (i == 5) label12.setText(cs); if (i == 6) label13.setText(cs); if (i == 7) label14.setText(cs); dg = label56.getBackColor(); //Write BackColor from Label56 to the variable dg if (i == 0) label7.setBackColor(dg); if (i == 1) label8.setBackColor(dg); if (i == 2) label9.setBackColor(dg); if (i == 3) label10.setBackColor(dg); if (i == 4) label11.setBackColor(dg); if (i == 5) label12.setBackColor(dg); if (i == 6) label13.setBackColor(dg); if (i == 7) label14.setBackColor(dg); dk = label56.getForeColor(); //Write ForeColor from Label56 to the variable dk if (i == 0) label7.setForeColor(dk); if (i == 1) label8.setForeColor(dk); if (i == 2) label9.setForeColor(dk); if (i == 3) label10.setForeColor(dk); if (i == 4) label11.setForeColor(dk); if (i == 5) label12.setForeColor(dk); if (i == 6) label13.setForeColor(dk); if (i == 7) label14.setForeColor(dk); cs = ""; //------------------------------------------ Color_Chars2(i); //Write the nominal values and the attributes of the cell down to Label56 cs = label56.getText(); //Write the nominal value from Label56 to the variable cs if (i == 0) label15.setText(cs); if (i == 1) label16.setText(cs); if (i == 2) label17.setText(cs); if (i == 3) label18.setText(cs); if (i == 4) label19.setText(cs); if (i == 5) label20.setText(cs); if (i == 6) label21.setText(cs); if (i == 7) label22.setText(cs); dg = label56.getBackColor(); //Write BackColor from Label56 to the variable dg if (i == 0) label15.setBackColor(dg); if (i == 1) label16.setBackColor(dg); if (i == 2) label17.setBackColor(dg); if (i == 3) label18.setBackColor(dg); if (i == 4) label19.setBackColor(dg); if (i == 5) label20.setBackColor(dg); if (i == 6) label21.setBackColor(dg); if (i == 7) label22.setBackColor(dg); dk = label56.getForeColor(); //Write ForeColor from Label56 to the variable dk if (i == 0) label15.setForeColor(dk); if (i == 1) label16.setForeColor(dk); if (i == 2) label17.setForeColor(dk); if (i == 3) label18.setForeColor(dk); if (i == 4) label19.setForeColor(dk); if (i == 5) label20.setForeColor(dk); if (i == 6) label21.setForeColor(dk); if (i == 7) label22.setForeColor(dk); cs = ""; //------------------------------------------ Color_Chars3(i); //Write the nominal values and the attributes of the cell down to Label56 cs = label56.getText(); //Write the nominal value from Label56 to the variable cs if (i == 0) label23.setText(cs); if (i == 1) label24.setText(cs); if (i == 2) label25.setText(cs); if (i == 3) label26.setText(cs); if (i == 4) label27.setText(cs); if (i == 5) label28.setText(cs); if (i == 6) label29.setText(cs); if (i == 7) label30.setText(cs); dg = label56.getBackColor(); //Write BackColor from Label56 to the variable dg if (i == 0) label23.setBackColor(dg); if (i == 1) label24.setBackColor(dg); if (i == 2) label25.setBackColor(dg); if (i == 3) label26.setBackColor(dg); if (i == 4) label27.setBackColor(dg); if (i == 5) label28.setBackColor(dg); if (i == 6) label29.setBackColor(dg); if (i == 7) label30.setBackColor(dg); dk = label56.getForeColor(); //Write ForeColor from Label56 to the variable dk if (i == 0) label23.setForeColor(dk); if (i == 1) label24.setForeColor(dk); if (i == 2) label25.setForeColor(dk); if (i == 3) label26.setForeColor(dk); if (i == 4) label27.setForeColor(dk); if (i == 5) label28.setForeColor(dk); if (i == 6) label29.setForeColor(dk); if (i == 7) label30.setForeColor(dk); cs = ""; //------------------------------------------ Color_Chars4(i); //Write the nominal values and the attributes of the cell down to Label56 cs = label56.getText(); //Write the nominal value from Label56 to the variable cs if (i == 0) label31.setText(cs); if (i == 1) label32.setText(cs); if (i == 2) label33.setText(cs); if (i == 3) label34.setText(cs); if (i == 4) label35.setText(cs); if (i == 5) label36.setText(cs); if (i == 6) label37.setText(cs); if (i == 7) label38.setText(cs); dg = label56.getBackColor(); //Write BackColor from Label56 to the variable dg if (i == 0) label31.setBackColor(dg); if (i == 1) label32.setBackColor(dg); if (i == 2) label33.setBackColor(dg); if (i == 3) label34.setBackColor(dg); if (i == 4) label35.setBackColor(dg); if (i == 5) label36.setBackColor(dg); if (i == 6) label37.setBackColor(dg); if (i == 7) label38.setBackColor(dg); dk = label56.getForeColor(); //Write ForeColor from Label56 to the variable dk if (i == 0) label31.setForeColor(dk); if (i == 1) label32.setForeColor(dk); if (i == 2) label33.setForeColor(dk); if (i == 3) label34.setForeColor(dk); if (i == 4) label35.setForeColor(dk); if (i == 5) label36.setForeColor(dk); if (i == 6) label37.setForeColor(dk); if (i == 7) label38.setForeColor(dk); cs = ""; //------------------------------------------ Color_Chars5(i); //Write the nominal values and the attributes of the cell down to Label56 cs = label56.getText(); //Write the nominal value from Label56 to the variable cs if (i == 0) label39.setText(cs); if (i == 1) label40.setText(cs); if (i == 2) label41.setText(cs); if (i == 3) label42.setText(cs); if (i == 4) label43.setText(cs); if (i == 5) label44.setText(cs); if (i == 6) label45.setText(cs); if (i == 7) label46.setText(cs); dg = label56.getBackColor(); //Write BackColor from Label56 to the variable dg if (i == 0) label39.setBackColor(dg); if (i == 1) label40.setBackColor(dg); if (i == 2) label41.setBackColor(dg); if (i == 3) label42.setBackColor(dg); if (i == 4) label43.setBackColor(dg); if (i == 5) label44.setBackColor(dg); if (i == 6) label45.setBackColor(dg); if (i == 7) label46.setBackColor(dg); dk = label56.getForeColor(); //Write ForeColor from Label56 to the variable dk if (i == 0) label39.setForeColor(dk); if (i == 1) label40.setForeColor(dk); if (i == 2) label41.setForeColor(dk); if (i == 3) label42.setForeColor(dk); if (i == 4) label43.setForeColor(dk); if (i == 5) label44.setForeColor(dk); if (i == 6) label45.setForeColor(dk); if (i == 7) label46.setForeColor(dk); cs = ""; } }