Results 1 to 2 of 2
  1. #1
    Ben1 is offline Member
    Join Date
    Oct 2010
    Rep Power

    Default Populating a JList from a text file - Netbeans

    Hi all,
    I'm just brushing up on my Java and have pretty much fallen at the first hurdle. So I'll start at the first problem and work from there.

    What I have:
    I've got my GUI designed in Netbeans all looking how I want it - Yay.
    I have my text file with a list of single words.

    What I need:
    I want my GUI to read this list of words in the text file and display them in a JList I've created.

    Then later, I have a field underneath where the user can enter more words and commit them too the list.

    Can anyone help?

    If more details are needed please let me know :-).


  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Rep Power

Similar Threads

  1. Adding to JList with Netbeans
    By kewlgeye in forum NetBeans
    Replies: 7
    Last Post: 03-28-2012, 08:39 PM
  2. populating a JList
    By hariza in forum AWT / Swing
    Replies: 2
    Last Post: 09-30-2010, 04:53 AM
  3. Populating the values in text fields
    By Inaam in forum Web Frameworks
    Replies: 2
    Last Post: 07-26-2010, 09:55 AM
  4. Populating JTable with 2 arrays (Netbeans)
    By althair in forum AWT / Swing
    Replies: 3
    Last Post: 12-30-2009, 03:05 PM
  5. How do I display a JList with icons and text?
    By aneesahamedaa in forum AWT / Swing
    Replies: 2
    Last Post: 09-04-2008, 09:49 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