Re: NullPointer in constructor?!

2002-03-10 Thread Albert Lai
Christian Kruggel <[EMAIL PROTECTED]> writes: > Why do some constructors throw NullPointers while others don't? I wrote > several constructors that called methods to initalize the object. I can only speculate, but here are some ways I can force a constructor to throw NullPointerExceptions. c

Re: Using this() in constructors

2002-01-09 Thread Albert Lai
I don't know enough about when and when not this() is allowed. But from my basic understanding of exceptions, and after some coding exercise, I am confused. First, you have: Jim Hazen <[EMAIL PROTECTED]> writes: > ExampleService(String host, int timeout) > {//impl here} This signature require

Re: Socket Exception out of Nowhere !!

2000-12-18 Thread Albert Lai
"Mr.Y.SHIVAKANT" <[EMAIL PROTECTED]> writes: > I gave up building up on the browser because i could not implement swing > anyway who is looking for a browser.I gave up building in java because i am > not building device drivers even if i were it would be in 'C' .Presently i > am looking for rich

Re: Pablo Trujillo

2000-10-24 Thread Albert Lai
> > If Java were pass-by-reference, then in this code fragment: > > String s = "foo"; > > myMethod(s); > > System.out.println(s); > > > > In a pass-by-value only language (like Java), you're going to get > > "foo" printed out. In a pass-by-reference language, the string that > > gets print

Re: Blackdown's Awful Scroll Advertisement Applet

2000-09-21 Thread Albert Lai
Bruce Miller <[EMAIL PROTECTED]> writes: > Its bad enough that the scroll ad applet seems to want to > consume all available cpu, but couldn't it AT LEAST > STOP when the user switches pages !?!?! Haha, so I am not the only one noticing this, and in fact now I am not the only one vocal enough t

Stupid ad on the web site

2000-08-28 Thread Albert Lai
Did anyone of you notice that the Java applet of the Simplicity Professional banner advertisement on the blackdown web site poorly written? First, it hogs the CPU. Second, it continues to hog the CPU after you leave the web page. This is ironic: on a web site targetted to the better calibre of

Re: browser gives a javax.swing.SwingUtilities not found error

2000-07-17 Thread Albert Lai
Not sure about windows (this is not a java-windows mailing list, after all :)), but I once tried writing applets making use of Swing and running them on linux inside netscape. The browser looks at CLASSPATH and utilizes extra classes available along it, if the browser itself does not already have

Re: yield stopping threads????

2000-07-17 Thread Albert Lai
Bruno Boettcher <[EMAIL PROTECTED]> writes: > computation is made by methods (which may contain yields) called through a > select in the run-method of each thread, after computation the thread is > blocked by a self-build semaphor. Each thread has a wake method, which sets > the desired computat

Re: yield stopping threads????

2000-07-11 Thread Albert Lai
Bruno Boettcher <[EMAIL PROTECTED]> writes: > I noticed that for some reason the whole system come to a stop, whilst there > where processes that are waiting after a yield. Those processes should be > sleeping, but waked as soon as there are no other process, or am i > wrong? I understand that y

Re: Emacs and java...

1998-07-23 Thread Albert Lai
I recommend reading a book on Emacs to get yourself started. I learned Emacs by reading: @Book{Cameron:LGE-1996, author = "Debra Cameron and Bill Rosenblatt and Eric S. Raymond", title ="Learning {GNU} {E}macs", publisher ="O'Reilly \& Associates", year = 1996,

Re: javac coredumps

1998-07-10 Thread Albert Lai
Zhichao Hong <[EMAIL PROTECTED]> writes: > I download jdk1.1.6 and installed on redhat linux 5.0. When I type javac, > it just coredumps. I didn't use tar zxvf file.gz to untar the jdk, > instead I use gunzip < file.gz| tar -xvf - > Is this a problem? The way you unpacked the package is not a