Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

textarea array value stored in another array  RSS feed

Dave Kairys
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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].setText(LowGravity[b].getText() + " " + maltedbeverage.getSelectedItem() + "\nkegs of " + lengthTF.getText());
brewed[b] = true;//garden is occupied
if (brewed[b] = true){
}//closes inner if
}//closes for loop
}//closes if
Any suggestions?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!