make sure components are initialized at tick event
This commit is contained in:
parent
1cc78b180f
commit
bc26f42992
@ -26,7 +26,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: SimControl.java,v 1.11 2009/03/09 15:39:33 fros4943 Exp $
|
* $Id: SimControl.java,v 1.12 2009/03/26 15:41:59 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.plugins;
|
package se.sics.cooja.plugins;
|
||||||
@ -122,8 +122,10 @@ public class SimControl extends VisPlugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sliderDelay.setValue(convertTimeToSlide(simulation.getDelayTime()));
|
if (sliderDelay != null) {
|
||||||
simulationTime.setText("Current simulation time: " + simulation.getSimulationTime());
|
sliderDelay.setValue(convertTimeToSlide(simulation.getDelayTime()));
|
||||||
|
simulationTime.setText("Current simulation time: " + simulation.getSimulationTime());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user