Little help updating my Jlabel
Hi guys hope some one can help, i have an application,where by when u click a button a loop is executed, below is the code for the loop
progress is a progress bar, what should happen is that the value of progress bar should imcremtent, when the loop is executed, and the progress bar should seem as though it is progressing. scanOutput is a jlabel which should display the value i. What seems to happen is that nothing is updated as the loop is being executed, only when the loop has finished, then the updates are shown. I hope you understand, if not I can explain more. Please can some one help me. It should update as the loop is executed.
for (int i=staport; i<=stoport;i++)
//a process happends here
catch (Exception e)
scanOutPut.setText("<HTML>" + i +"<p></HTML>");
Last edited by major; 02-02-2006 at 08:23 PM.
try an explicit update with:
this should help. if not, tell me.
Last Post: 01-25-2006, 01:35 AM
By Caroline in forum VB Classic
Last Post: 03-23-2002, 11:21 PM
By Jade29 in forum VB Classic
Last Post: 01-12-2002, 10:12 PM
Last Post: 08-01-2001, 07:49 PM
By Alan Shiers in forum Java
Last Post: 05-22-2000, 10:47 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center