Go Back   Computer Juice > Computer Software > Web Design, Hosting & SEO
Register Points Site Spy New Posts Donate Unanswered Posts Members Search

>>> Get Paid to Hang Out Here! Activity = Points = Prizes. Want to Know More? <<<

Reply
 
LinkBack Thread Tools
  #1  
Old 20th Mar 2007
No Avatar
Medo  disclosed
CJ New Member
 
Medo is offline
 
Join Date: 20th Mar 2007
Last Online: 20th Mar 2007 02:59 AM
Posts: 1
iTrader: (0)
Medo is on a distinguished road
Default is there a way to write java code, using string

concatenation, like "jButton"+ i, where (i) = 1,2,3... i use netbeans, and it creates the code for the buttons and text fields automatically, now can i make a method to read all the contents of these fields by a looplike this (((for example)))for (i=1;i
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #2  
Old 20th Mar 2007
No Avatar
CJ New Member
 
undercoloteal is offline
 
Join Date: 20th Mar 2007
Last Online: 20th Mar 2007 10:26 AM
Posts: 1
iTrader: (0)
undercoloteal is on a distinguished road
Default is there a way to write java code, using string

You can't do symbolic references like you're trying to do in Java, but you could make an array that has references to the textfields: JTextField fields[] = {jTextField1, jTextField2, jTextField3}; then iterate through the array. Then if you need to add more textfields you can just change the array initialization and keep the same loop.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote

Please support this forum, donate towards our running costs.


Reply


Thread Tools

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does Mac write to the hard drive? mike4life Drives & Removable Media 1 16th Jan 2008 01:03 PM
Write error? killa92 Multimedia, Drivers & Codecs 4 1st Oct 2007 09:52 PM
can you tell me how i remove the write deltagremlin Sound, Speakers & MP3 Players 2 20th May 2007 02:05 PM
Can someone write me a fitness plan? rambling vine Off Topic Discussion 8 3rd May 2007 04:45 AM
Java programming question. What do java rhohltjr Web Design, Hosting & SEO 4 20th Mar 2007 01:09 PM


Copyright ©2006 - 2008 Computer Juice - Forums - Free PC Help, IT Support and Repairs.

Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc.

Page copy protected against web site content infringement by Copyscape