I am trying to define an applet with a chart that should be updated every n milliseconds. For example, every 500 milliseconds. This is part of the code:
dataSet = new DynamicTimeSeriesCollection(1, 200, new Millisecond());
dataSet.setTimeBase(new Millisecond());
When I run the application, it returns me a NullPointerException raised by the second line. If I replaced Milliseconds with Seconds, it will work.
The question arises: how to set the period to milliseconds without exceptions?
thank
source
share