I am making a tic-tac-toe game and I am scanning in the players name and piece in the viewer. How am I able to access that in the component class? I am not able to put a method in my viewer, so I can't say getPlayer of getPiece, but there has to be some way to pass that variable into a different class. Thank you!
kjavaapclass
0
Newbie Poster
Recommended Answers
Jump to PostWe can help you if you don't provide more information. What viewer are you talking about? how does your classes relate? give us a little code or at least describe your application design so we can understand what you are trying to accomplish.
if what you wan is to …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.