File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes how Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "how" Watch "how" New topic


Ravi mca

Joined: Mar 14, 2009
Posts: 4
how to move a file from one drive to another using java swing. tell me!.........
Ravi mca

Joined: Mar 14, 2009
Posts: 4
try it with this,

public FileChooserDemo() {
UIManager.LookAndFeelInfo[] installedLafs = UIManager.getInstalledLookAndFeels();
for (UIManager.LookAndFeelInfo lafInfo : installedLafs) {
try {
Class lnfClass = Class.forName(lafInfo.getClassName());
LookAndFeel laf = (LookAndFeel) (lnfClass.newInstance());
if (laf.isSupportedLookAndFeel()) {
String name = lafInfo.getName();
supportedLaFs.add(new SupportedLaF(name, laf));
} catch (Exception e) { // If ANYTHING weird happens, don't add it
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Look at the java.util.File API.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Firstly, please take the time to choose the correct forum for your posts. This forum is for questions on XYZ. For more information, please read this. This post has been moved to a more appropriate forum.

Also, please be sure to take the time to compose descriptive subjects for your posts; read this for more information. A title such as "how" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: how
It's not a secret anymore!