inheriting JDK classes
in
Programming Questions
•
1 year ago
Hey !
I'm making an interface for my game and I want to use the java.awt.Component subclasses, like TextComponent. I thought of extending it to my own class to display in Processing, using the existing fields and methods. But how can I see the exact content of this class ? The doc from Oracle gives the methods but hides most of the fields, like I don't know the name of the String object used to store the text. I'd like to open the JDK classes and see their code, so I know what I have to write. Where to find them ?
NB : I have Processing installed on a Mac.
I'm making an interface for my game and I want to use the java.awt.Component subclasses, like TextComponent. I thought of extending it to my own class to display in Processing, using the existing fields and methods. But how can I see the exact content of this class ? The doc from Oracle gives the methods but hides most of the fields, like I don't know the name of the String object used to store the text. I'd like to open the JDK classes and see their code, so I know what I have to write. Where to find them ?
NB : I have Processing installed on a Mac.
1