• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to find out the constructor?

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!!! Friends,
I would be appreciate if u help. Let me example u what i am looking for for.
public class Test
{
TextField theTextField = new TextField(10);
new Test1(theString);
}
=========
public class Test1
{
Test(TextField theField)
}
Ok!!! Now I want to know the constructor of the `theField' which is TextField(10). how to get the result?
Thanks,
Kishor
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kishor,
I am not sure what you are asking...
Are you asking how you can get a constructor to set the TextField in the class, and inherit it from the parent class?

Is this what you were looking for?
HTH,
-Nate
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I THINK this is what you are asking

// TextField needs to be in a GUI somewhere

If you want to print the contents of the textField AFTER the user puts something else in it, then you need to -maybe a button to show that they are done, or you could add a Listener to find when the field is full, but it will be more complicated.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic