Method getParent()
Return type: java.lang.String
Member of: java.io.File
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 mf = new File(f.getParent(), ".nfile-meta-" + f.getName());
2 return new File(file.getParent(), file.getName()+".bak");
3 if (f instanceof FtpFile && f.getParent() == null && f.getName().length() == 0)
4 String p = dir.getParent();
5 String s = f.getParent();
6 String p = f.getParent();
7 generatedJarLocation.setText(jarFile.getParent());
8 JFileChooser chooser = new JFileChooser(textArea.getFile().getAbsoluteFile().getParent());
9 while(file.getParent() != null)
10 snapshotFile_gz = new File(snapshotFile.getParent(), snf + ".gz");
11 String path = new File(realPath).getParent();
12 String par = f.getParent();
13 File parent = new File(f.getParent());
14 File directory = new File(targetFile.getParent());
15 String parentPath = f.getParent();
16 File dirs = new File(file.getParent());
17 this.dir= file.getParent();
18 String parent = file.getParent();
19 app = express.getParent();
20 path = new File(fullyQualifiedFilename).getParent();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.