Results 1 to 2 of 2
  1. #1
    Moncleared is offline Member
    Join Date
    Jan 2009
    Rep Power

    Cool JComboBox Functionality

    Is it possible to populate a JComboBox with a list of files from a specific directory on your local machine? I'd rather not use a Browse button so to speak, I like having the drop down menu because we're only going to be working out of one directory. Any direction is appreciated!


  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    Use the File class to get a list of File's in the directory. Use their names to populate the combo box.

Similar Threads

  1. Replies: 7
    Last Post: 10-06-2008, 04:01 PM
  2. Implement Search Functionality
    By New2484 in forum New To Java
    Replies: 2
    Last Post: 08-27-2008, 07:07 AM
  3. Functionality of Buttons
    By ljk8950 in forum AWT / Swing
    Replies: 6
    Last Post: 08-15-2008, 01:44 PM
  4. Change Password Functionality
    By Priyadharshini.s in forum Advanced Java
    Replies: 5
    Last Post: 04-02-2008, 12:56 PM
  5. class wordprocessor with spellchecking functionality
    By manuniyi in forum AWT / Swing
    Replies: 1
    Last Post: 12-25-2007, 05:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts