Help coderanch get a
new server
by contributing to the fundraiser

Wickes Potgieter

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

Recent posts by Wickes Potgieter

Hi, we are looking for WebLogic specialists to work in South Africa (locations: Cape Town, etc.). If you have 2 or more years experience in WebLogic products we would like to hear from you. Wily Introscope experience desirable.

Please send resume to
[ February 25, 2006: Message edited by: Wickes Potgieter ]
18 years ago
Is it possible to change the RMI Registry port number during runtime?
Thanks...I will test it again just to make sure...
Well, I have completed my assignment (thanks to JavaRanch) and will be submitting next week Tuesday and write on Wednesday...

But, I have implemented both create/delete functionality in the data class and am wondering if I should take it out. It does work, but I have not tested it fully. I know people has passed without implementing it. Should I take it out or leave it? Obviously providing an explanation on why I have not implemented it.

Thanks in advance!
I also get the same error...

Thank you for the help!
ok, I see your point. So, I should rather support the mode flag and then pop up a dialog on startup to get the file location or the server location?

default mode(no flag): Client runs expecting to connect via network.

"server" flag: Server runs expecting connections via network only.

"standalone" flag: Client and server both run in non-networked mode.

When my client starts I display a Dialog box so that the user can choose between a local or a remote database graphically. So, I don't see the need for the "standalone" flag. Should I put it in anyway?
My instructions:

The mode flag MUST be either "server", indicating the server program MUST run, "alone", indicating standalone mode, or left out entirely, in which case the network client and gui MUST run.

I am not sure what they mean by this statement?

findByCriteria method comments:
* Returns an array of record numbers that match the specified
* criteria. Field n in the database file is described by
* criteria[n]. A null value in criteria[n] matches any field
* value. A non-null value in criteria[n] matches any field
* value that begins with criteria[n]. (For example, "Fred"
* matches "Fred" or "Freddy".)

My Question:
For the search "matches any value that begins with...", should I use regular expressions or will the String Object method "startsWith" be sufficient?

Thanks Hanna,

how did you implement the constants class if I may ask?

Thank you Hanna,

what will be the best approach then? Constants defined in the class that uses them or a separate constant class for all other classes?


what should I do with String constants for things like button labels, dialog messages, error messages, etc.?

Should I:
1) Put all constants in a properties file and read them at runtime?
2) Declare them as constants at the top of my class?

Any other suggestions?

What about text for labels, error messages, etc. where do you put yours? in the properties file or do you hard code them in your source?
Thank you for the reply!