• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

set textfield text from another class java

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have got this 2 classes

but when i try to move the text from one to another i don't see it when i switch to the 2nd window, although i do see with when printing to console with getTest();



 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ofir,
Welcome to the Ranch!

I see some problems with your code:
a) Too long to read for people to help out - I suggest you create a SSCCE.
b) You are using both AWT and Swing components. ex.: TestField in the second class - this is a bad idea if intentional. If not, you should remember that Swing components start with a 'J' and you might have missed it.
c) I don't see any method where you set the text to (in the second class).
 
reply
    Bookmark Topic Watch Topic
  • New Topic