added code to see what the game is about to download (commented it out to avoid spamming other developers)

This commit is contained in:
Maxmtg
2013-03-18 20:37:57 +00:00
parent 7f24c62fae
commit 160d45015d

View File

@@ -171,19 +171,17 @@ public abstract class GuiDownloader extends DefaultBoundedRangeModel implements
} }
private void readyToStart() { private void readyToStart() {
if (this.cards.size() == 0) { if (this.cards.isEmpty()) {
barProgress.setString("All items have been downloaded."); barProgress.setString("All items have been downloaded.");
btnStart.setText("OK"); btnStart.setText("OK");
btnStart.addActionListener(actOK); btnStart.addActionListener(actOK);
btnStart.setVisible(true); } else {
}
else {
barProgress.setMaximum(this.cards.size()); barProgress.setMaximum(this.cards.size());
barProgress.setString( barProgress.setString(this.cards.size() == 1 ? "1 item found." : this.cards.size() + " items found.");
this.cards.size() == 1 ? "1 item found." : this.cards.size() + " items found."); //for(Entry<String, String> kv : cards.entrySet()) System.out.printf("Will get %s from %s%n", kv.getKey(), kv.getValue());
btnStart.setVisible(true);
btnStart.addActionListener(actStartDownload); btnStart.addActionListener(actStartDownload);
} }
btnStart.setVisible(true);
SwingUtilities.invokeLater(new Runnable() { SwingUtilities.invokeLater(new Runnable() {
@Override @Override