Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JButton and ActionListener  RSS feed

 
Nickolay Kolev
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am trying to make a button which, when clicked, will display a dialog box woth a previously generated string...
Here is how:

but i get the error when compiling that attsStr should be declared final...?? How can I then dynamically generate it?
Many thanks,
Nickolay Kolev
 
Nickolay Kolev
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
problem solved
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!