Archive for the ‘Swing’ Category

Set form size according to the screen resolution

java
Screen resolution is varying from one system to another. So to fit your form size depends on the screen resolution the following code is used. Here first take the screen size and set that size to your panel. Full story

How to Get JPG from rectangle Using Robot Class

swing-logo
Java.awt.Robot class is used to take the control of mouse and keyboard. Once you get the control, you can do any type of operation related to mouse and keyboard through your java code. This class is used generally for test automation. Full story

Playing audio files in java using applet class

Sound_Icon
Java has inbuilt feature of the playing the sound file.The play() method is used to play sound file.Here is sample code for playing audio using java applet Full story

How to add PDF in to a Panel in Swing

PDF
To add pdf into a Panel ,Ist download PDFRenderer.jar and add that jar to your project lib folder. Then create a jpanel and call function addPDF() as below. Sample code for adding pdf to a panel : Full story
Copyright © 2012 CoreTimer.com|System Admin’s Reference. All rights reserved.

Switch to our mobile site