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

JButtons icon  RSS feed

 
Pan Niko
Ranch Hand
Posts: 86
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have a JFrame->JPanel->JButtons.. with actionListener store the first clicked button to first JButton variable and the second clicked button to another one. My goal is to learn if those two buttons are connected together (connected means there is a "path" of specific ImageIcon on the rest buttons between the first and the second button only horizontal or vertical). I have created a method called to a second class and i would like to know how is possible to learn if exist a "path" or not between those two. If anyone has better idea, is welcomed
thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!