New branche

This commit is contained in:
Кашин Максим 2022-12-02 00:21:00 +04:00
parent 5db0520322
commit a432fd6516

View File

@ -42,9 +42,9 @@ public class FormGasolineTanker extends JFrame{
private void SetData() {
Random rand=new Random();
_gasolineTanker.SetPosition(rand.nextInt(100)+10,rand.nextInt(100)+10,getWidth(),getHeight());
SpeedLabel.setText("Скорость: "+_gasolineTanker.getGasolineTanker().getSpeed());
WeightLabel.setText("Вес: "+_gasolineTanker.getGasolineTanker().getWeight());
BodyColorLabel.setText("Цвет: "+Integer.toHexString(_gasolineTanker.getGasolineTanker().getBodyColor().getRGB()).substring(2));
SpeedLabel.setText("Speed: "+_gasolineTanker.getGasolineTanker().getSpeed());
WeightLabel.setText("Weight: "+_gasolineTanker.getGasolineTanker().getWeight());
BodyColorLabel.setText("Color: "+Integer.toHexString(_gasolineTanker.getGasolineTanker().getBodyColor().getRGB()).substring(2));
}
@Override