Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding Multiple ImageView

 
M.Aamir khan
Greenhorn
Posts: 11
Netbeans IDE Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just trying to add multiple images view to the Box but still no success... where i am going Wrong?

 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M.Aamir khan wrote:... still no success...

You need to TellTheDetails <- that's a link

Are any Exceptions thrown? I see a catch block with only e.getMessage() which returns a String that you don't do anything with. I would suggest replacing that with e.printStackTrace().

You do know that arrays need to be innitialized before they are used, don't you?
 
M.Aamir khan
Greenhorn
Posts: 11
Netbeans IDE Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh my Bad ,,, i didn't init the array,,, thanks for the Hint...

but we can not predict the size of the input to init the array ..
 
M.Aamir khan
Greenhorn
Posts: 11
Netbeans IDE Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are any Exceptions thrown?


No, There is no Exception thrown program is running fine but not adding any image to ImageView

and yes i initialize the array with but we know the size of input is unpredictable and once i initialize the array, lets say 10 in this case so it will fill with not more than 10 images and then here is the pro with this Code



once you clear the ImageView it will not take data again because its still having some garbage i thought
 
Darryl Burke
Bartender
Posts: 5149
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
M.Aamir khan wrote:but we can not predict the size of the input to init the array ..

Good use case for a List or other Collection. Have you dicovered the Oracle tutorials? Trail: Collections.
 
M.Aamir khan
Greenhorn
Posts: 11
Netbeans IDE Python VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Good use case for a List or other Collection.


Yup , Working Fine Now..

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic