What is JFrame :
A JFrame is a window that has a border, title, and supports button components which are used to close or iconify the window. GUI applications usually uses JFrame.
Now lets see how we can create JFrame component :
JFrame tFrame = new JFrame("This is a frame title");
This line of code creates a frame using a constructor which takes a title as a argument. You can use non argument constructor as well.
Now lets see the usage and examples of JFrame
1. How to set size of JFrame :
- Blogger Comment
- Facebook Comment