i don't think you need doPaint() as the GaugeField delivers the functionality you need.
Without trying your code i see two obscure things:
- your comment (seems to be a sample) mentions to extend mainscreen, you extend popupscreen.
- you create a timer but you don't use it.
Code:
int i=0;
progressTask = new TimerTask() {
public void run() {
percentGauge.setValue(i);
i++;
}
};
Timer progressTimer = new Timer();
progressTimer.scheduleAtFixedRate(progressTask, 100, 10000); this would update the gauge field every 100ms with a 1% progress. didn't test it though
