Dear Readers,
I am seriously very confused about what you are asking. It seems you want to create a sub-class of JTextField. That would give the sub-class most of the capabilities of the superclass. But if you actually want even the private methods and all from JTextField then simply open up the source file of JTextField and copy-paste it into another file.