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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by haslo

  1. haslo

    Null Object Design Pattern and Integer?

    No, it wouldn't help with regular int operations. It would however help with toString() (just returning an empty String), and generally avoid NullPointerExceptions in cases where null objects specificially don't need special handling. The application we're thinking of refactoring consists of...
  2. haslo

    Null Object Design Pattern and Integer?

    Hm, thanks :-/ A pity, since in a database application like ours it actually makes a difference whether it's a neutral element or actually not defined... I think we'll revert to using proxies then anyway, at the cost of losing autoboxing / unboxing [neutral] www.haslo.ch
  3. haslo

    Null Object Design Pattern and Integer?

    It seems you can't apply the Null Object Design Pattern to uses of the Integer wrapper class, because it's final... Any solutions that let us avoid the dreaded object==null test (and the resulting special handling whenever we need a toString() or something) which don't use a Proxy class...
  4. haslo

    Another kind of Low-Level Format?

    I wrote another mail to the company and will see what they say (I also pointed out this thread here). Thanks for ruling out the RAM possibility, they will be glad to hear you support their stance here. I looked what kind of HD I have, the BIOS told me it's a IC25N040ATMR04, which would be a...
  5. haslo

    Another kind of Low-Level Format?

    I have a follow-up question, too: Can you imagine that such a non-zero-filled hard drive could cause these STOP codes in a WinXP setup, even before I even can select the hard drive and partition (or choose to format it)? I could imagine the WinXP setup accessing the hard drive before that, of...
  6. haslo

    Another kind of Low-Level Format?

    Thanks a lot for your answers... technome: That's pretty much what I thought (the BS and nightmare part), but I called them one or two times and since they're a really small firm spoke with the people in charge, and they actually sound like they sort of know what they're doing. Reversing the...
  7. haslo

    Another kind of Low-Level Format?

    I have bought a notebook, with a catch. I had a notebook before, and they re-used my old hard drive in the new device, exchanging pretty much everything else. When I first got, I tried to install my Windows XP Update, and it started to BSOD all the time. The STOP codes were usually one of the...
  8. haslo

    The programming langauge of the future ?

    It depends on the time frame. If by "future" you mean "another 200-300 years", then you're probably right. When I said Python, I meant another 5-10 years, because beyond that, we can't make any reasonable predictions anyway, IMHO. But with natural language you might be pretty close. (By the...
  9. haslo

    Swing application that uses an editable grid

    I like this one as well: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html haslo@haslo.ch - www.haslo.ch
  10. haslo

    get relation information via jdbc

    What we're doing in a project I'm working on right now is, we have two special tables in our database, one being "tables" and one being "fields", and those two tables hold all the metadata we need. But that is something we had planned from the very start. You're planning to develop in Oracle...
  11. haslo

    JDOM

    Maybe if you try with one of these? The JDOM site works flawlessly for me since the time you first posted, so most probably, it will also work with these proxies... Where are you from? I ask because your IP range may somehow be banned... How does the JDOM site "not work"? And then, the .jar and...
  12. haslo

    JDOM

    No, but the JRE is, and you said you'd want to download the JRE... The default XML parsing framework is JAXP. However, you can use JDOM if you wish, nothing prevents you from doing so. The source code from JAXP is in the SDK source distribution, but if you want the JDOM source you'll have to...
  13. haslo

    CLASSPATH - Question

    ...and of course I did forget something really important. Make that (for the split src and bin paths I suggested)... C:\john\java>javac -sourcepath src src/myPackage/*.java -d bin C:\john\java>java -classpath bin myPackage.HelloWorld ...thus selecting the output path as the current path as...
  14. haslo

    CLASSPATH - Question

    Yes, same thing. If you'd have no package defined, it would work like this, but packages are the way to go, so do the following: C:\john\java>javac myPackage/*.java C:\john\java>java myPackage.HelloWorld I'd also advise getting a GUI like Eclipse (altough others would not), it makes things...
  15. haslo

    CLASSPATH - Question

    replace the c:\John\java\myPackage by c:\John\java - the myPackage indicates that the class is in the package myPackage, which is the same as the subdirectory myPackage in any of your classpath's directories. Hm, that sounds a lot more complicated than it actually is... haslo@haslo.ch -...

Part and Inventory Search

Back
Top