<Swing Dev> Bug 6306075

Pavel Porvatov pavel.porvatov at oracle.com
Tue Jun 26 15:00:56 UTC 2012


Hi Paulo,
> Actually, i did find a new 'problem' related to this class now:
> java 7 added the getContentLengthLong method to urlconnection (for 
> long downloads), and i was using getContentLength as a maximum value 
> for a progressbar - needless to say those methods don't work with longs.
>
> I suppose they (ProgressBar.setMaximum, setValue, setMinimum) can't be 
> transparently changed from int to long?
You can scale you long values into int

Regards, Pavel



More information about the swing-dev mailing list