wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes code correction! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "code correction!" Watch "code correction!" New topic
Author

code correction!

pras
Ranch Hand

Joined: Apr 04, 2007
Posts: 188
if((int)msg.getPercentageCompleted() < 100 )
{
this.progressCounter = this.progressCounter + 20;
parentDlg.updateProgress(msg.getMessage(),progressCounter,100);
}

/***********getPercentageCompleted returns values******************/
suppose i want to go inside to increment progressCounter with the above condition and if there is one more condition

ie********* progressCounter should cease functioning untill getPercentageCompleted sends 100*** getPercentageCompleted sends information in a random way**********************/
pras
Ranch Hand

Joined: Apr 04, 2007
Posts: 188
the pattern is as follows

getpercentageCompleted sending
0---- we increment 20
0---- 40
0---- 60
0---- 80
0----/****from here on we should retain 80 till getpercentagecompleted
0 sends 100************/
0 /*** ie it should be 80
0-----80
0
0
0
0
0----
100
pras
Ranch Hand

Joined: Apr 04, 2007
Posts: 188
please help guys
Mark Garland
Ranch Hand

Joined: Nov 11, 2006
Posts: 226
I'm not sure that I understand the question.


28/06/06 - SCJP - 69%, 05/06/07 - SCWCD - 92%, 28/02/08 - IBM DB2 v9 Fundamentals (Exam 730) - 87%, 18/11/08 - IBM DB2 v9 DBA (Exam 731) - 89%, 26/02/11 - SCBCD - 88%
Srikanth Basa
Ranch Hand

Joined: Jun 06, 2005
Posts: 241
prasanna can you please take some time to properly draft the question. I also don't understand what you need.

If you have to post some code you can use the tags code tags.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Yes please!

Can you please be a bit patient on letting others know about your requirement clearly? so that it will really help the people to help you quickly.


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: code correction!
 
Similar Threads
For Loop Performance
Validation in sturts
SCJP 6, 15.04.2010 12:30 CET
Dynamic content based on drop down.
Difference between if(resultSet.next()) and while(resultSet.next())