[]'s
Thiago
Cristiani Vilela Ribeiro wrote:
Bom dia Pessoal,���� Estou com um problema quando utilizo o objeto Gauge ! Vejam um exemplo do meu c�digo:�����gaProgress = new Gauge("Download Progress", false, 5, 1);������� fmMain.append(gaProgress);������ // Called by application manager to start the MIDlet.
� public void startApp()
� {
��� display.setCurrent(fmMain);���� // Create a timer that fires off every 1000 milliseconds���
��� tm = new Timer();
��� DownloadTimer tt = new DownloadTimer();
��� tm.scheduleAtFixedRate(tt, 0, 1000);��� ������ ��� ��� for(int i = 0; i < 5500000; i++);��� }�private class DownloadTimer extends TimerTask
{
��� public final void run()
��� {
����� // Is current value of gauge less than the max?
����� if (gaProgress.getValue() < gaProgress.getMaxValue())
����� {
������� gaProgress.setValue(gaProgress.getValue() + 1);����������������
����� }��� }}�O meu prolema � o seguinte, enquanto a aplica��o est� executando o for ela segura o display e n�o apresenta as barrinhas do objeto gauge subindo.Alg�m sabe como me ajudar.Obrigada.�Cristiani Vilela Ribeiro
Especialista em Sistemas
[EMAIL PROTECTED]
ICC - Inatel Competence Center
(35) 3471 - 9439
www.inate.br
