Access « JTextField « Java Swing Q&A





1. Access to Java Swing TextField from other class    stackoverflow.com

I have a problem with Java Swing text input. I have a method inputData() in class A and when I call it, the method should wait while user fill TextField input ...

2. how to access TextField    coderanch.com

3. Access JTextField from another class.....    forums.oracle.com

4. Why can't I access JTextField form particular function?    forums.oracle.com

Thats right, because I left it out. For testing purposes it tried to get "display.getBackground()" in the changeKonfig()-function. It doesn't matter what I try to do with my display (JTextField).... I always get this error. Here is the error message: Exception in thread "main" java.lang.NullPointerException at xmltest.XMLTest.changeKonfig(XMLTest.java:118) at xmltest.XMLTest.setSprache(XMLTest.java:82) at xmltest.XMLTest.(XMLTest.java:43) at xmltest.XMLTest.main(XMLTest.java:226) Java Result: 1 Where can I find the ...