Posts Tagged frame

JFrame

This JFrame is a class which is located at the java package javax.swing

JFrame helps to form applet , this class is one type of Container where different Components can be

added by getContentPane() and add() method of this class.

JFrame

The JFrame is one of the static or predefined Frame where there is limitation of extending the Frame feature

All the classes of

package are predefined applet components. It’s design is also static on all

operating system. There is platform independent design of JButton,JLabel,JTextField bar and all things. Here we use JFrame for the

independent of the application.

Where as in the context of

The components like Button,Label all are platform indendent as well.

Tags: , , ,

Frame Height in Applet

Actually the the height we defined for JFrame may differ as what we assume . In windows JFrame uses its height including it’s title bar and the bottom border of window frame.It can be illustrated below :
Let’s we code the JFrame size.

In this code we can see that we defined a JFrame size to 100px width and 100px height. But actually some programmer feels problem on the height of the windows size , even we had declare the size of the JFrame to 100. The JFrame height includes the title bar and it’s bottom liner height.

Read the rest of this entry »

Tags: , , , , ,