CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: JList problem

  1. #1
    Join Date
    Sep 1999
    Location
    Pacific Ocean, Deep Blue Sea
    Posts
    133

    JList problem

    help me !
    i have read through the JDK specifications but it doesn't tell me how to
    1) get all contents in a JList
    2) remove one or all contents in a JList.
    3) add a value to a JList during runtime
    4) sort the contents in the JList

    why ?

    pls help


    Signature (up to 100 characters) You may use Markup in your signature

  2. #2
    Join Date
    Apr 1999
    Posts
    13

    Re: JList problem

    You must do this through the JList's model.

    To do an update to the model, you must extends DefaultListModel and then expose the fireContentsChanged methods since they are protected. You can get the ListModel by making a call to getListModel on the JList.


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured