Get value from JPanel textfield in another class

I have JPanel with text box, save button in another panel. If I click the save button I have to get the 1st panel text box value.

How to access it?

Answers


Just make the TextField as Public Static dats it. And then u can Access the TextField Using ClassName.TextFiledName


Need Your Help

Load local if CDNJS not available

javascript jquery local cdn

I have a quick question. I have a couple of JavaScript files that I use on every single project and currently use CDNJS to load them.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.