Title: Java Eclipse - JFrame 1
Description: In this video, I start my discussion of JFrame. This is the beginning of a series of videos on frames. We start by creating a JFrame class. We set the following properties: the title of the frame, whether it is resizable, the size and location. We created a seperate method for the size and location. We left the location for the windows platform to determine. As far as the size, we used the Toolkit class that help us determine the screen dimension. We used half of that dimension to determine the size of the frame. In the main method, we used the recommended approach of creating the frame on a seperate thread (new Runnable thread). After we created the frame, we set its default close operation (exit on close) and made it visible.
Methodology: Good coding standards and object-oriented design.
Technologies: Java, object-oriented programming
Examples constructed: We create a simple frame with a title. We create a method to determine the size and location of the frame. The size is half the screen size, and the location was left to the windows platform to determine.
Keywords: class, JFrame, EventQueue, Runnable, Dimension, Toolkit, main, EXIT_ON_CLOSE.