• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how

 
Ravi mca
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to move a file from one drive to another using java swing. tell me!.........
 
Ravi mca
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
continue;
----------------
----------------
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the java.util.File API.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic