FileChooser « Swing « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Swing » FileChooser 
1. Don't know much about file history?
Author:Klaus Berg
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip119.html?
Summary: Many file processing applications have a history mechanism that tracks the last processed files. Typically these filenames are appended to the bottom of a File menu in the order you have processed them. This tip provides a class that encapsulates all the code you need to add such a file history mechanism to your own application. Discover the key "hot spots" to link the mechanism into the JFrame used to build the heart of your application. The code is based on Swing, as provided with JDK 1.2 or JDK 1.3. (1,500 words; November 2, 2001)


2. Add a history mechanism to JFileChooser
Author:Klaus Berg
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip100.html?
Summary: Many applications provide a history mechanism for recently used files or visited Websites. This tip enhances the Swing JFileChooser component by using the accessory feature to implement a history mechanism for visited directories. The directory history saves you the many mouse clicks necessary to select input directories the traditional way, by using the Up and Down buttons of the File Chooser. Additionally, this tip shows you how to add a file preview pane to speed the process of choosing new files. (2,000 words)


3. Fun and games with JFileChooser
Author:Jon Sharpe
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip85.html?
Summary: JFileChooser is a class supplied with Swing that lets users select specific files from mapped drives. It imitates the Windows Explorer and Unix File Manager programs. This Java tip shows you how to use it, and gives you details on some of the problems it can run into. (2,300 words)


4. Add a file finder accessory to JFileChooser
Author:Ken Klinner
URL:http://www.javaworld.com/javaworld/javatips/jw-javatip93.html?
Summary: How many times have you selected the Open File menu item in an application only to discover that you can't find the file you need? This tip demonstrates how to add a threaded file finder accessory to JFileChooser similar in appearance and functionality to the Find Files or Folders utility available in the Windows Explorer Tool menu. With that file search accessory, your standard file dialog can help you find the file you need. As a result, you'll gain the tools to implement your own JFileChooser accessories. (2,000 words)


5. Speed up file searching in JFileChooser
Author:Slav Boleslawski
URL:http://www.javaworld.com/javaworld/jw-02-2001/jw-0216-jfile.html?
Summary: Traditionally, users choose files by scrolling the file chooser's list with their mice. You can speed that process by enhancing JFileChooser with a type-ahead method: the user just types the first few characters of a filename to select the desired file. This article shows you how to do just that. Plus, you'll learn how to register listeners on a compound component's descendants to extend JFileChooser's functionality. (2,000 words)


ww___w__.j___a__v_a__2___s___.__c_o_m_ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.