This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes array to graphic mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "array to graphic mapping" Watch "array to graphic mapping" New topic
Author

array to graphic mapping

Anandh Ramesh
Ranch Hand

Joined: Dec 15, 2004
Posts: 61
Hi,

I have a set of arrays with strings stored in them. i need to display the values in the arrays inside boxes (squares). these boxes should be updated as and when the array gets updated. can somebody help me on how this can be done?


cheers,<br />Anandh
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Anandh Ramesh
Ranch Hand

Joined: Dec 15, 2004
Posts: 61
thanks for the code. i see that this generates a grid of strings. however, let me put my requirement this way.

i have n queues with strings, say 4.
i have n sets of boxes corresponding to these n queues, with the corresponding elements.
i have a function that pops one queue and pushes that element into another queue.
i want the contents inside these boxes to get updated whenever these queues are modified.

any help is greatly appreciated.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: array to graphic mapping
 
Similar Threads
'Arrays of arrays' confusion
doubt in pass by refrence
Array assignment
Page 579 of SCJP 6 book
HELP!! Multidimensional Array Migraine