JFrame tutorial and Examples

JFrame :

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 :
Share on Google Plus

About Pranav

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment


Post a Comment