shakila

Greenhorn
+ Follow
since Aug 02, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by shakila

Hi Manfred,
Thanks for the reply. I solved the problem by setting the FileSelectionMode to DIRECTORIES_ONLY. Thanks again!
Shakila
23 years ago
Hi,
I have a Java application that reads in and manipulates a few files. I assume the files are in the default directory without asking the user. I would like to make that better and ask the user where he has the files he wants read. I know you can select files using the File Chooser Dialog but I was wondering if there was a way to bring up a similar dialog to choose directories instead of specific files.
Thanks,
Shakila
23 years ago
Thanks for your help!
23 years ago
Can someone tell me how I could format a double number (lets say to show only two decimal places) when I'm printing it.
Shakila
23 years ago
Hi,
Thanks for all your help. I know why this happens. I had assigned the first element of the Vector to be a empty string (""). This was why that was happening. When I changed that into a string it showed more than one item on being opened.
Shakila
23 years ago
I'm not sure if this will be of help, but the function .setSelectedItem(String str) will change the text in the ComboBox for you and you can simple remove the listener associated with the ComboBox!
23 years ago
Hi,
Nope all the components on the frame are light weight! (JTextFields and JTextAreas). I even tried doing jcombobox.setMaximumRowCount(int) and it didn't work!
Shakila
23 years ago
Hi,
Thanks for answering but I don't want the user to select more than one item, but I want to be able to see more than 1 of the items. I'm not sure why this happens, but I have a text area right below this JComboBox in my GridLayout, this may be causing this to happen.
Shakila
23 years ago
Hi,
I have this JComboBox that displays just 1 item at a time although the Vector that initializes it has hundreds of elements. When I checked with the .getMaximumRowCount() function return value it is 8. Is there a way to set the number of rows for a JComboBox? Thanks.
Shakila
23 years ago