hi..... iam just a beginer using NetBeans...
I want to ask how to make JFile Chooser in Java NetBeans to be like File chooser interface in Windows ..?? :D
Printable View
hi..... iam just a beginer using NetBeans...
I want to ask how to make JFile Chooser in Java NetBeans to be like File chooser interface in Windows ..?? :D
I'm not sure if this is a Netbeans-question or a Swing-question, but:
The FileDialog-class has a Windows-interface:
Code:FileDialog fd = new FileDialog(parentFrame);
fd.setLocation(50, 50);
fd.setVisible(true);
Are you using NetBeans inbuilt UI class? Like JDialog and so on. If so you can easily drag-drop the controls and customize accordingly.
may i know how to add a filter in this file chooser..like allowing only .doc ,doc.x ,.txt files
Code:JFileChooser fileChooser = new JFileChooser(".");
FileFilter filter = new ExtensionFileFilter("Files", new String[] { "DOC", "DOCX" });
fileChooser.setFileFilter(filter);