Cathy Song

Ranch Hand
+ Follow
since Jul 01, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Cathy Song

Thanks for your replies - I had heard both stories but I was not sure how widespread they were

Originally posted by Ilja Preuss:
There also was a rumor that Sun thought about renaming Netbeans to Safari and changing the icon to a dead blue elephant...



LOL
[ March 10, 2006: Message edited by: Cathy Song ]
Try jGRASP - it's really easy to use.
jgrasp.com

And IMHO the best beginner Java book that I have ever used is Java Software Solutions - http://duke.csc.villanova.edu/jss1/index.html
Try jGRASP - it's really easy to use (and its free)

jgrasp.com
I was wondering why IBM named this IDE "Eclipse" - does anyone know?

Thanks,
class Test{
public static void main(String args[]){
A a = (A) new Object(); //line 1
B b = (B) new A(); //line 2
}
}

class A{
}

class B extends A{
}

How come line 1 and 2 compile? We are performing a narrowing conversion.

Thanks.
-Cathy
18 years ago
Ah thanks soooooooooo much!!
18 years ago
Consider this program:
class ArrayObj{
public static void main (String[] args) {
String[] array = new String[5];
System.out.println(array[0]); //line 1
System.out.println(array[0].toString()); //line2-nullPointerException
}
}

Why does line 1 print null and line 2 generate an exception?
I was expecting line 1 to throw a nullPointerexception also, since I thought
toString() method would be called implicitly.

Thanks,
Cathy.
18 years ago
Thanks much!

-Cathy.
19 years ago
Thanks much!

-Cathy.
19 years ago
Hi All,

I am running Java 1.5.0_04 on windows xp.

I have one animated GIF file and a static GIF file. First I setIcon() to the
JLabel with the static GIF file. Before I perform some activities, I
setIcon() to the JLabel with the animated GIF file so that the user knows
some kind of process is going on. The label gets updated with the animated gif, but the gif looks static, i.e. the animation is lost....why is this happening?

-Cathy
[ August 16, 2005: Message edited by: Cathy Song ]
19 years ago
Hi all,

Is it possible to add a component to a specific cell using gridlayout?

Thanks,
Cathy.
19 years ago
got it...

used instanceOf
19 years ago
I can get the border of a component by using comp.getBorder(), now what method should I use to determine the type of the border?
[ August 12, 2005: Message edited by: Cathy Song ]
19 years ago