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

    How to test if JList is empty????

    Please I want to test if JList is empty or not.
    Thanks


  2. #2
    Join Date
    Jan 2000
    Location
    CA, USA
    Posts
    305

    Re: How to test if JList is empty????

    JList list;

    list.getModel().getSize() == 0 => empty

    Kannan



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