Feherke:
to me the output is irrelevant.
As in your example, the result should be:
double d_new = 3.14;
with your
double d = 3,14;
used as input.
Tim:
the new double value has to be written into a class field which is of type double. At the moment of writing the "." must be there, because I...
Feherke,
as I wrote: "The result MUST be a double value", so your solution is NOT an option.
Tim,
I have tried something like that, but the output is still a String and not a double/Double value. I also tried to change the Locale.setDefault(Locale.UK), but for some reason I still have the...
Hi,
I want to change the decimal separator in a double. The result MUST be a double value with the needed new decimal separator.
Input: 10,0
Output: 10.0
How to change the "," into an "." where the local computer settings is put to DE. Changing the local settings of the computer is NOT an...
Dian,
well if you have a better alternative which is NOT an FTP server or samba but JFileChooser GUI like, please tell me.
Please try to understand why I do not wanna use FTP server or Samba. It is not always possible to install/implement an FTP server or Samba.
I wanna be able to support...
Well I checked ALL methods of FileSystemView and several of JFileChooser.
Overriding ALL methods of FileSystemView does not solv the problem. JFileChooser is also using several methods of FileView for checking is file exists and accessable. So a lot more overrides need to be done.
Therefore I...
Well jftp is a complete application for FTP using Java.
I only need a GUI like JFileChooser to browse and get my files(content).
When I am able with a GUI like JFileChooser to select the file I want, all other stuff is simple.
The last problem is to make JFileChooser work with and accept the...
sewdj,
In the mean time I have implemented getDefaultDirectory() and it returns now the server directory.
But JFileChooser does not accept this directory. That was what I was explaining in the last posts.
I am trying to overwrite several other JFileChooser methods and I am getting closer what...
ok sorry, its Java 1.4 I am using.
But I still encounter that the JFileChooser.setCurrentDirectory() is causing the problem. The member currentDirectory is private which means I cant change it when overriding the method. When overriding I need to override every method using currentDirectory...
Diancecht,
yes, retrieving the files are the content.
Not sure yet what will be the best.
I need to parse the file content. These are XML documents and I need to show the content into another GUI.
Here the code of the default JFileChooser.setCurrentDirectory()
public void setCurrentDirectory(File dir) {
File oldValue = currentDirectory;
if (dir != null && !dir.exists()) {
dir = currentDirectory;
}
if (dir == null) {
dir = getFileSystemView().getDefaultDirectory();
}...
Guys,
No FTP client/server setup.
I debugged JFileChooser.setCurrentDirectory().
He checks if the new directory (server directory) exists locally. Which is not the case of course. So he sets it to "My Documents".
I believe I have to write completely my onw JFileChooser with building up the GUI.
Diancecht,
I dont wanna use FTP or mapping a network drive.
The client will run on windows, the server on UNIX (or might be any other OS).
I dont wanna install/active a FTP server on the UNIX only for this purpose.
Timw,
I am using a Bridge class because I wanna be able to select files...
timw,
Java 1.3:
There is no getDefaultDirectory() in FileSystemView.
There is a getHomeDirectory() which I overrided and giving back the directory on the server. But it looks like that because that directory does not exist localy, JFileChooser falls back to his defaults.
Here the code from a...
Well gents,
as I see it now:
when the directory in the "Look in" window does not exist, which is logical because that is a server sided directory, then JFileChooser takes "My Documents"(client sided) as directory. Besides that my FileFilter is ignored.
The getting and listing of remote files...
sedj,
I was not my intention to offend some1 here. And as I said ealier: I appreciate all help and effort.
But my experience with these forums is that in a lot of cases people reply but do not really know the solution. So their reply is not really helping. I am not saying your or Tims replies...
Tim,
I do not mean you have to write and test it for me.
At the moment I feel it is too much of trial and error without really knowing it will work.
I appreciate your effort, but I am looking for a solution that works. Maybe I have to write the JFileChosser completely myself (which I dont...
Thanks all for the help, but I think there are too much assumptions what should work and how to implement.
I believe I have not seen a solution that really works.
I have already tried several things, but the browsing through directories seems to me the biggest problem now.
So please only reply...
I am getting the remote file list now by using a File[] getFiles() on the server side.
The next problem is: how to walk through the directories on the server using the "Look in" and the "Up One Level" button. Because these are related to my client side (till so far).
When I set the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.