The Java documentation from Oracle© is the best place.
At the moment, the documentation is here: http://www.oracle.com/technetwork/java/javase/documentation/index.html but this might change.
Look through the official documentation to see what is in it. The purpose of these notes is to overview the Swing package. Look to the documentation for complete coverage.
Here is one (of several) constructors for JTextField
.
The parameter says how many characters wide the field is.
JTextField( int numChars )
The parameter is number of characters, not the size in pixels. The following program displays the frame at the top of this page.
Fill in the blanks so that the field is 15 characters wide.