Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Java
  4. Java - Iterating through form controls to create Array of Selected Items from Multiple JLists

Java - Iterating through form controls to create Array of Selected Items from Multiple JLists

Scheduled Pinned Locked Moved Java
javadata-structures
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11383665
    wrote on last edited by
    #1

    I want to iterate through the Controls on a form using a For loop to find the JLists then create an array of the selected items on certain JLists by JList name hopefully In vb I would do something like: For each ctrl in me.controls if ctrl.name="abc" then [do something] end if Next

    L 1 Reply Last reply
    0
    • U User 11383665

      I want to iterate through the Controls on a form using a For loop to find the JLists then create an array of the selected items on certain JLists by JList name hopefully In vb I would do something like: For each ctrl in me.controls if ctrl.name="abc" then [do something] end if Next

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      And in Google it would be: iterate controls jform java - Google Search[^].

      U 1 Reply Last reply
      0
      • L Lost User

        And in Google it would be: iterate controls jform java - Google Search[^].

        U Offline
        U Offline
        User 11383665
        wrote on last edited by
        #3

        Thanks, was simpler than I thought. Had tried searching, just should have thought a bit more about what i was searching for, it was a long night.

        L 1 Reply Last reply
        0
        • U User 11383665

          Thanks, was simpler than I thought. Had tried searching, just should have thought a bit more about what i was searching for, it was a long night.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Given your question, what else could you search for?

          S 1 Reply Last reply
          0
          • L Lost User

            Given your question, what else could you search for?

            S Offline
            S Offline
            Soniya Philip
            wrote on last edited by
            #5

            Nice comment . I am also done these codes in my work. But it is some difficult for me using in work.Every paper you develop or write should have a main or complete point. Best essay writing service

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups