sebu koleth

Greenhorn
+ Follow
since Nov 26, 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 sebu koleth

Hi,
FileDialog is only for choosing the file. If you go through its methods you will find that it includes getFile() and getDirectory() that returns a String object representting the chosen file and the directory. You have to use these strings to create filestreams for reading from the file or writing to the file. The FileDialog.LOAD and FileDialog.SAVE constants are only for indicating that the purpose of the dialog is for opening a file or saving a file. ATB.
23 years ago
As far as I can see what you have been trying to do is assign an array containing Strings to an array containing Labels. But this is not possible. You will have to first create Label objects with the Strings and then initialise the array. Or create the array of Label objects with empty constructors and then set the text of each label. If someone else can suggest a better solution please do so.
23 years ago
No Swati. That is not right. The interpreter is platform-specific and is installed by the JRE for that platform. On a Windows9x platform go to Program Files->JavaSoft->Jre->(1.2 or 1.3)-> (which is the default installation location)and you will find the 'bin' and 'lib' directories. These directories contain the interpreter and the runtime (rt.jar) required for running the Java program.
Also you might come across some programs that search for Java interpreters and list one as Windows->Jview.exe. This comes from Microsoft and it is possible to use this interpreter in some cases (Word of advice: don't try it unless your Java application simply has to be as small as possible)
[This message has been edited by sebu koleth (edited January 03, 2001).]
23 years ago
Hello,
Could you explain, as much as possible, exactly how much of a resource saving threads can contribute to? It seems to me that even if threads are running in the same memory space, as one thread yields to another, some unique details about that thread will have to be saved. What, usually, are these details? In contrast what additional parameters are there for processes?