tom nugent

Ranch Hand
+ Follow
since Dec 20, 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 tom nugent

Hi,
Somehow the link http://www.javaranch.com/carl/scwcd/ didn't show the directory when I clicked on it. Please help. Thank you.
-Tom
Thank you, Manfred. You answered my questions.
23 years ago
Can actionPerfomed method be called directly? also can any user-defined object use addActionListener to get an event listener? Thank you.
23 years ago
Thank you, Nate. I'd actually ended up doing just that, using seek.(RAFObject.length()).
--Tom

[This message has been edited by tom nugent (edited April 03, 2001).]
23 years ago
Hello,
How do you check for 'EOF' in reading a RandomAcessFile? Thank you.
23 years ago
Thank you, Frank
23 years ago
Hello,
What's the best data structure to store and retrieve data in the form of record, to and from disk, respectively? This should also let one search the record based on criteria from a record field. I was thinking of RandomAccessFile but just wondering if there are newer alternatives. In term of performance, does it matter if I try something like retrieving the record in saved File object , then put the fields into an array, then use Arrays to binarySearch? Also, how is this compared to Linklist or Tree? Is it true that if one has jdbc connection, this can easily be done in the backend? Thank you.
23 years ago
Thank you, Cindy.
23 years ago
Hello,
Is there a component like Jtable without grid, except for the headings? Thank you.
23 years ago
Hello,
For some reason, I ran into peculiar situation sometimes delete() works, and other times it doesnt, especially when I put the code snippet as part of a bigger application. I just wonder if anyone have similar experience.
Example:
....
String fileName=(String)listbox.getSelectedValue();
System.out.println("file to be deleted= "+fileName);//printed filename correctly
File f = new File("c:\\temp", fileName);
System.out.println(f.delete());//printed 'false' even if the file is indeed in the c:\temp directory as specified, and it's not deleted
or in other simple case...
import java.io.*;
public class del {
public static void main(String args[]) {
File path = new File("c:\\temp");
File f=new File(path,"somefilename");
System.out.println(f.delete());//printed 'false' even if the file with "somefilename" exists in c:\temp
}}
23 years ago
Hello,
I got 2 frames, the first frame has text fields and combo boxes displaying a data record and the second frame let user choose a data record from a combo box to be displayed on the first frame. Both use data from a shared record object. If a user click on a button on the first frame, the second frame pops up and let user choose a new record. After clicking on a button on the second frame, the new data record displays on the first frame. My problem is to make the new data record displayed on the first frame. I make the first frame a member, and pass it as object to the second frame. Then I call the functions created in the first frame on the passed object to populate the displaying fields with data from new record, but somehow nothing were displayed. What did I do wrong? What are the alternatives? Please help. Thank you very much.
--newbie
23 years ago
thank you, Bill. I understood it now.
Hello,
what's the significance of using "while" loop versus "if" statement in synchronized methods [pertaining to wait() and notify()] running theads? Could someone give me an example of the difference? Thank you.
thank you very much. I think I was confused because I didnt heed the scope of the variable v. It's out of scope after exiting from the call to 'another(ValHold v, int i)'.
Hello,
I just wonder if anyone can explain to me why the output is 10,0,20 but not 10,0,10. Thank you.
================

(just added UBB code tag for readability -Mapraputa)
[This message has been edited by Mapraputa Is (edited March 08, 2001).]