jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes how to find out the constructor? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to find out the constructor?" Watch "how to find out the constructor?" New topic

how to find out the constructor?

kishor patankar

Joined: Sep 25, 2000
Posts: 13
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?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

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?

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
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.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link: http://aspose.com/file-tools
subject: how to find out the constructor?
jQuery in Action, 3rd edition