Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: wiser
  • Order by date
  1. wiser

    "Uncatchable" exception while loading images

    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...
  2. wiser

    "Uncatchable" exception while loading images

    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...
  3. wiser

    "Uncatchable" exception while loading images

    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...
  4. wiser

    Convert ResultSet into List/ArrayList/?

    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...
  5. wiser

    Permissions on default shares (C$ etc.)

    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.
  6. wiser

    Permissions on default shares (C$ etc.)

    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...
  7. wiser

    Permissions on default shares (C$ etc.)

    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...
  8. wiser

    append to begining of file

    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...
  9. wiser

    Number Format Exception

    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...
  10. wiser

    Windows task bar/desktop size

    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...

Part and Inventory Search

Back
Top