Home Segments Top Top Previous Next

680: Mainline

JFrame is an acronym for Java Frame. Because the JFrame class is a subclass of the Frame class, the Window class, and the Container class, as indicated in Segment 670, you can refer to an instance of the JFrame class, or instance of subclasses of that class, as a jframe, frame, window, or container.

You can call a JFrame instance a jframe when you want to be precise; you can call the same JFrame instance a frame when you are thinking of it as a foundation for an application; you can call the same instance a window when you are thinking of it in terms of its graphical representation; and you can call it a container when you think of it as a window in which other components appear.