- Wednesday, July 21, 2010, 6:10
- Java, Swing
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
- Saturday, July 17, 2010, 6:35
- Java, Swing
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
- Saturday, July 3, 2010, 10:21
- Java, Swing
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
- Saturday, July 3, 2010, 8:59
- Java, Swing
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