this.cc = cc; setGrabberVisible(false); setBackground(DefaultControlPanel.colorBackground); threadUpdate = new ProgressBarThread ( this, cc ); threadUpdate.start();
if (cc == null) super.paint(g); else { long len = cc.getContentLength(); long progress = cc.getContentProgress(); if (len < 1) { return; } if (progress > len) len = progress; setDisplayPercent((int)(100 * progress / len)); super.paint(g); }
paint(g);