Skip to content

Instantly share code, notes, and snippets.

@kcmannem
Created April 1, 2015 01:15
Show Gist options
  • Save kcmannem/4fcd7e3b5f6b683ecd4b to your computer and use it in GitHub Desktop.
Save kcmannem/4fcd7e3b5f6b683ecd4b to your computer and use it in GitHub Desktop.
for(String s: this.gPane.candidates) {
int bptr = this.gPane.candidates.indexOf(s);
try {
this.gPane.graphBars.get(bptr).limit = (float)voteCount.get(s)/(float)resultDB.size();
}catch(Exception e) {
this.gPane.graphBars.get(bptr).limit = 0;
}
System.out.println(this.gPane.graphBars.get(bptr).limit);
this.gPane.graphBars.get(bptr).start();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment