I've removed the line
url.openConnection();
and added an if() block:
if(url != null)
{
img = Toolkit.getDefaultToolkit().getImage(url);
}
In this case it does seem to work just as well. I wasn't sure if it would because this wouldn't cater for the case where the URL was non-null but...
No, but that should be caught by the "try ... catch(Exception ex)" block, shouldn't it?
The only thing I can think of is that Toolkit.getDefaultToolkit().getImage(url) is firing off the ImageFetcher listed in the stack trace in another thread which isn't handling the exception. I suppose I could...
I am trying to write an application to be launched via our intranet site using Java Web Start, and I want to store resources such as images in a separate jar file so that they can then be easily re-used in other similar apps. The resource jar file is also stored on a central server and can be...
Just a thought:
Couldn't you create an array of TimeSeries objects before iterating through the data? That way you could use the standard ResultSet functionality to step through the data a row at a time building up your TimeSeries simultaneously, and add them all to the TimeSeriesCollection at...
No, I've double-checked this and the local administrator account is the only one that's listed in the permissions for the shares I'm using. A "Domain Administrators" group does exist, as does an "Administrators" group on the local machine, but neither are listed in the share permissions.
Hi
Yes, you're right - I can change the passwords and probably will. That would be the better solution and is probably as easy from an admin point of view, but I was hoping (naively?) that there might be a simple way to set up the shares the way I want and also to satisfy my curiosity!
One...
Does anyone know if it's possible to set or override the permissions on the default shares C$, D$ etc. which Windows XP automatically creates for each hard drive/partition?
I have a security problem with them because some users on our network know the password for the local administrator...
Looks like it's still overwriting rather than inserting text in the file. I think Custom24 is right about your solution 1 being the only one which will work. A RandomAccessFile will allow you to write at any point in the file, but it will overwrite whatever's already there; the file won't grow...
Looks like the value you're taking from the input field (which is a string) has a '$' character at the beginning. You'll need to do some additional formatting to remove this before passing the string into the Double constructor. I think the comma might also cause problems, so you might need to...
Does anyone know if there's a way to detect either:
the size and position of the task bar
or
the dimensions of the desktop minus the task bar in Java on Windows NT/2000/XP?
Using java.awt.Toolkit.getDefaultToolkit().getScreenSize() I can get the screen dimensions, but this doesn't take the task...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.