• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to find out the constructor?

 
kishor patankar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic