September 28, 2008

Published September 28, 2008 by

Fullscreen Frame in Java

We may have several frames or windows of various sizes in our Java programs. Sometimes we need fullscreen frame or window. Sometimes we do it by setting the width and height of the frame as same as the screen i.e., monitor like 800 x 640 or 1024 x 768 etc. But what will happen if the monitor is changed or the resolution of the monitor is changed or the program is run on different PCs with different...
Read More
Published September 28, 2008 by

Resize and Show Image in Java

Sometimes we need to show images in our Java program and sometimes the images need to be re-sized or scaled; the image may be stored in a file in the storage. Here we will discuss how we can show an image on a label (javax.swing.JLabel) from an image file. We will also discuss how we can scale or resize the image before showing on the label.Firstly, we have to create an Image object which refers the...
Read More