This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes textarea array value stored in another array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "textarea array value stored in another array" Watch "textarea array value stored in another array" New topic
Author

textarea array value stored in another array

Dave Kairys
Ranch Hand

Joined: Sep 09, 2005
Posts: 33
I am using a TextArea array to store various values. The program is basically booking a room. When one room is booked, the background color changes and some text appears. It then needs to move to the next room. I can get the color and the text to appear, but I can't get it to move to the next room. I have an array for the 'next room' that is set to true(from false) when the color and text appear for the booking of the first room. I am also using JRadioButtons. Here is some code:

if (rweak.isSelected()) {
for (int b = 1; b < 4; b++){
LowGravity[b].setBackground(lightRed);
LowGravity[b].setText(LowGravity[b].getText() + " " + maltedbeverage.getSelectedItem() + "\nkegs of " + lengthTF.getText());
brewed[b] = true;//garden is occupied
if (brewed[b] = true) {
LowGravity[b].setBackground(lightRed);
}//closes inner if
break;
}//closes for loop
}//closes if
Any suggestions?
Thanks!
I do realize that this is a SWING topic. I also posted it there as well.
Sunil Kumar Gupta
Ranch Hand

Joined: Aug 26, 2005
Posts: 824
Duplicate Post


Lack of will power has caused more failure than lack of intelligence or ability.
My Blog | Red5 Resources | Technology Update | Daily Technology Tips
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: textarea array value stored in another array
 
Similar Threads
Writing in a text File is appending some INVALID Symbol on using any StringBuffer with \n
textarea array value stored in another array
converting 1.4 code to 1.5
Array list/linking list
Changing the color of text printed in a TextArea.