Java File Chooser customization


 
Thread Tools Search this Thread
Top Forums Programming Java File Chooser customization
# 1  
Old 08-05-2008
Java File Chooser customization

I am trying to add some other things onto the standard file chooser. I would like to have something like this at the bottom of the file chooser (underneath the Select and Cancel buttons). I will try to make this as legible as possible:

File Name:
File Type:
Select Cancel

A list or something of the sort that can only have one value selected:

Sorts
Plots
Both

2 checkboxes that can both or neither or either one be checked:

Print
Alerts

I can do the sorts,plots,both part in a different dialog box like this:


Object[] possibilities = {"Create PDS sorts file (*.txt)", "Create PDS plots file (*.ps)", "Create both sorts and plots files"};

String s = (String)JOptionPane.showInputDialog(this,null,"Batch Parameters",JOptionPane.PLAIN_MESSAGE,null,possibilities,possibilities[0]);

I really want this to appear on the file chooser dialog box. It doesn't have to be in the list type thing that it is in, but that would be nice.

I have found something called setAccessory, but I don't really understand how it works.

Any help would be great. Thanks.

Allyson
# 2  
Old 08-05-2008
Please find more information from the following resources. One of them gives you an example of how to extend a JFileChooser.

Customizing JFileChooser
Customizing JFileChooser and Best Practices in Exception Handling Tech Tips
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. AIX

Any file to differentiate JAVA JRE and JAVA JDK

Folks, Any idea of where can I find a specific file to differentiate JRE and Java JDK installed on AIX platform :cool: (3 Replies)
Discussion started by: dellcisco
3 Replies

2. UNIX for Dummies Questions & Answers

Customization within UNIX/AIX

Hey guys I am sorry if this has been posted before but I have not been able to locate. How can I set up after I cd to a directory it displays above my command line after I enter into it? Also to get to the previous command I cannot press up on my keyboard it just moves up. How can I change... (17 Replies)
Discussion started by: Koopa_Troopa
17 Replies

3. Ubuntu

Grub customization

I installed 9.10 this weekend. It's a fresh install. It installed GRUB, which works great, but with the 9.04 install I could customize the Grub menu (color, default OS and timeout) by editing /boot/grub/menu.lst. That file is no where to be found on this install. I've searched and all I find is... (4 Replies)
Discussion started by: dday
4 Replies

4. Linux

kickstart centOS 5.1 ---customization question

I am doing a centos 5.1 kickstart install for a school project and was wondering if there is a way to install a custom desktop background image.(upon 1st time logging into system) (instead of showing the default centos desktop background, it would show a custom image) Would i have to create a... (1 Reply)
Discussion started by: nuGz
1 Replies
Login or Register to Ask a Question