Chuck Lan

Greenhorn
+ Follow
since Feb 17, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Chuck Lan

Are there jsdk available for MacOS?
Chuck
24 years ago
so a is okay, b is okay because it's method overloading. c is not okay because the overriding method has a different return type. d is okay because ArithmeticException is a runtime exception. e is okay because FileNotFoundException is a subclass of IOException.
It is okay at runtime because objBase is a reference to a MySub object, which is a subclass of MyBase. So casting the object to MySub class is okay.
Hi,
I don't see a reason for creating a two dimensional int array. Why not just store the x and y values of the secret square? Also, if x is of type int[][], then x[i] is a reference to an array of integers.
Chuck
24 years ago
I called setValue(int) of JScrollBar,and set it to getMaximum() of JScrollBar. That seems to work.
Chuck
24 years ago
i added a JTextArea under JViewport of JScrollPane, and I'm sending text to the JTextArea using the append(String) method. How do I make it so that when the JTextArea is filled with text, that JScrollPane will scroll down automatically as more String is being appended to JTextArea?
24 years ago