This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help about the variables referrence ?  RSS feed

 
yfeing song
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am learning to write an application in modularization , but problem orccered:
I want to update the other JSplitPane's JTextField's text in one JSplitPane in referrence of the table's data, and the JSplitPane's child components are the extended JPanels. But how to get referrence of the JTextField in other non-static class?
Thanks.
 
Shane Roylance
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This may be an oversimplification of what you are doing, but couldn't you just add an addText(String) method to the object that contains the text field you want to modify? Assuming, of course, that you have access to the instance of that object.
Shane
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!