New branche
This commit is contained in:
parent
5db0520322
commit
a432fd6516
@ -42,9 +42,9 @@ public class FormGasolineTanker extends JFrame{
|
|||||||
private void SetData() {
|
private void SetData() {
|
||||||
Random rand=new Random();
|
Random rand=new Random();
|
||||||
_gasolineTanker.SetPosition(rand.nextInt(100)+10,rand.nextInt(100)+10,getWidth(),getHeight());
|
_gasolineTanker.SetPosition(rand.nextInt(100)+10,rand.nextInt(100)+10,getWidth(),getHeight());
|
||||||
SpeedLabel.setText("Скорость: "+_gasolineTanker.getGasolineTanker().getSpeed());
|
SpeedLabel.setText("Speed: "+_gasolineTanker.getGasolineTanker().getSpeed());
|
||||||
WeightLabel.setText("Вес: "+_gasolineTanker.getGasolineTanker().getWeight());
|
WeightLabel.setText("Weight: "+_gasolineTanker.getGasolineTanker().getWeight());
|
||||||
BodyColorLabel.setText("Цвет: "+Integer.toHexString(_gasolineTanker.getGasolineTanker().getBodyColor().getRGB()).substring(2));
|
BodyColorLabel.setText("Color: "+Integer.toHexString(_gasolineTanker.getGasolineTanker().getBodyColor().getRGB()).substring(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user