Sponsored Content
Top Forums Programming Java File Chooser customization Post 302221990 by ajgwin on Tuesday 5th of August 2008 06:17:44 PM
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
 

4 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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
tk_dialog(n)						       Tk Built-In Commands						      tk_dialog(n)

__________________________________________________________________________________________________________________________________________________

NAME
tk_dialog - Create modal dialog and wait for response SYNOPSIS
tk_dialog window title text bitmap default string string ... _________________________________________________________________ DESCRIPTION
This procedure is part of the Tk script library. Its arguments describe a dialog box: window Name of top-level window to use for dialog. Any existing window by this name is destroyed. title Text to appear in the window manager's title bar for the dialog. text Message to appear in the top portion of the dialog box. bitmap If non-empty, specifies a bitmap to display in the top portion of the dialog, to the left of the text. If this is an empty string then no bitmap is displayed in the dialog. default If this is an integer greater than or equal to zero, then it gives the index of the button that is to be the default button for the dialog (0 for the leftmost button, and so on). If less than zero or an empty string then there won't be any default button. string There will be one button for each of these arguments. Each string specifies text to display in a button, in order from left to right. After creating a dialog box, tk_dialog waits for the user to select one of the buttons either by clicking on the button with the mouse or by typing return to invoke the default button (if any). Then it returns the index of the selected button: 0 for the leftmost button, 1 for the button next to it, and so on. If the dialog's window is destroyed before the user selects one of the buttons, then -1 is returned. While waiting for the user to respond, tk_dialog sets a local grab. This prevents the user from interacting with the application in any way except to invoke the dialog box. KEYWORDS
bitmap, dialog, modal Tk 4.1 tk_dialog(n)
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy