This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JButton changing text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JButton changing text" Watch "JButton changing text" New topic
Author

JButton changing text

Harry Mastary
Greenhorn

Joined: Apr 04, 2013
Posts: 3
Hello everyone,
I am new to java and especially GUIs.

I have this piece of code and I get a compilation error that my variables (i,j) need to be declared as final.
The thing is that i,j cannot be declared as final as I need them to loop through the array.



Thanks
Harry Mastary
Greenhorn

Joined: Apr 04, 2013
Posts: 3
solution found!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43933
    
  33
Welcome to the Ranch
Please tell us what the solution was, in case somebody else has a similar problem in future.
Harry Mastary
Greenhorn

Joined: Apr 04, 2013
Posts: 3
this is what I came up with

 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: JButton changing text
 
jQuery in Action, 3rd edition