Neeteesh Singh

Greenhorn
+ Follow
since Sep 15, 2008
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 Neeteesh Singh

Thank you for the suggestions... I think I might get what I want from the Apache Commons Net Library.
i am using the SimpleFTP.jar file for uploading the file to the server.... I want to create a directory dynamically so that i can upload to that folder on the server.
Thank you for the reply...
I have no idea about the FTP libraries. isn't there any other way for achieving what i want to using any java code or program.

I want to upload a file on the FTP Server by Selecting a file form my local machine. The Application is designed in an applet where a browse button is clicked to select the file using the FileChooser. After the selection of the file Upload button is clicked to upload the file to the FTP server. But my problem is that it uploads the file in the root path of the FTP server if the directory is not present but it uploads to the correct directory path once I manually create the desired directory. The creation of directory has to be dynamic based on the username and the function the user selects. so it would be very helpful if someone can help me with some java code to first check whether the directory exists and if not then it could create it so that my code can upload the specified file to the specified directory.

Thank You

[ UD: You accidentally posted in all-bold letters with a large font size; I fixed that for you. ]
Thank you very much for your help... I would follow your advice.
12 years ago
Hello,

I am new to Applet. I have a question on JPanel. Should I use JPanel with JApplet. What I want to know is that should I use a JPanel as a Container for the various applet components or should I directly add the various components to the applet itself. what is a better approach. Just want to know about the approach and better programming style for Applet or JApplet.

Thank You,
Neeteesh
12 years ago
Thank You Ulf for a warm Welcome.

Thank you for your reply. I also thank you for the useful tip of not using constructor in an applet. I will remember that.

I tried putting the code in the start() method also but it created few more problems. The required lookandfeel only show when I put my code in the static block, but it doesn't keep the same lookandfeel once I refresh the page and displays the java swing lookandfeel.

I am not able to find out whats going wrong. you have pointed out about the page reload. So, should I try looking for some help on that or it might be some other issue that I should look for?

Thank You.
12 years ago
Hello

I am building one GUI with the help of JApplet. I have used this static block for setting the lookandfeel for the GUI. My problem is that when i hit the refresh button of the browser in IE Applet changes from my custom lookandfeel to java default cross platform lookandfeel. I tried placing the lookandfeel code in the init() method and the constructor also but no help. It would be nice if anybody can help me with this problem. My static lookandfeel code follows...


static {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (UnsupportedLookAndFeelException e) {
System.out.println("UnsupportedLookAndFeelException Occured...");
} catch (ClassNotFoundException e) {
System.out.println("ClassNotFoundException Occured...");
} catch (InstantiationException e) {
System.out.println("InstantiationException Occured...");
} catch (IllegalAccessException e) {
System.out.println("IllegalAccessException Occured...");
}
}


Thank you.
12 years ago