Brandon W

Greenhorn
+ Follow
since Jan 22, 2002
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 Brandon W

Maybe I asked the following question?
1) booking seat is the only area need to be locked, while just reading the database for updating the JTable don't need to have locking.
2) Thread is only created when for booking seat
Many thanks for your help.
Brandon
I created an array and want to pass it with data from the server to the client through RMI. However, the received array in the client side contains only null values. I am thinking of using serializable object but the assignment stated that only RMI or Serializable object can be used. Any advice?
22 years ago
Hi,
I can return a DataInfo[] from criteriaFind(). However, how to catch the returned result is a question to me as I don't know what's the size of the return array. Actually, I may pass an array into the criteriaFind() but if I do so, I will actually change the parameters of the criteriaFind and that's doesn't match what shown in the downloaded assignment:
public DataInfo[] criteriaFind(String criteria)
can I actually change the declaration by adding more parameters?
Brandon
Hi,
I have a problem in returning the DataInfo[] from criteriaFind. My question is how do I know the size of the DataInfo[] in order to declare a variable to get the return values from this:
DataInfo[] criteriaFind(String criteria)
Thx for any advice.
Hi,
In the Data.java file, when I tried to compile the part of the program, I got the following error:
unreported exception java.lang.DatabaseException; must be caught or declared to be thrown. Seemingly, the function getRecord which throws DatabaseException is not enough:
public DataInfo getRecord(int recNum) throws DatabaseException {
If I changed the declaration to be:
public DataInfo getRecord(int recNum) throws IOException {
I could get rid of the problem. My question is Do Sun allows us to make such like this... changing what being thrown? Or there's other way to do it?
Brandon
Hi Mark,
Thanks for your advice. Actually, beside creating public class, what other way will you try to reduce the size of a program file?
Brandon
Hi
When I started programming the assignment, I found I put too much code on the same page. I tried to split the code into files by creating public classes. By doing so, I call the external class by creating instance. Am I in the right approach?
However, when I tried to create another class for creating the panel of a JTable together with a button which tells the program to go to the next panel, I need to create another instance from the Jtable class to call back to the main class to navigate to the next panel. This approach looks strange to me. Also, although clicking the button on the Jtable panel can trigger an event, it goes to the wrong panel. Any recommedation is highly appreciated.
[ January 31, 2002: Message edited by: Brandon W ]
Hi,
The assignment mentioned that "Only components from the Java Foundation Classes (Swing components) should be used." How about AWT? AWT is different from Swing but it's belongs to JFC. Can I use it? Please correct me if I am wrong. Thx.
Brandon
22 years ago