About Harsh Raval
List/Grid Author Archives Subscribe to the RSS feed of Harsh Raval

Create new message notification pop up in Java
First create JFrame to work as pop up. Add some JLabels in it to contain information and assign them at proper location to look like a notification message.A sample code is given ...

Useful Ant build tags
Questions: How to do following tasks in ant file?Make zip file. Run command. Copy files to remote machine. Run commands on Remote Linux machine. Open an input box and respond ...

Transparent JFrame using JNA
In Make JFrame transparent I had shown a way to making frame’s transparent using AWTUtilities class. But using that class results in access restriction compile time error, resolution ...

Make JFrame transparent
First create a frame that has a slider in it which will be used to set transparency amount. import javax.swing.JFrame; import javax.swing.JSlider;public class TransparentFrame ...

Gateway interaction in Smack API
Gateway interaction is described by XEP-0100. The query xmlns (namespace) used for this is same as IN-Band registration, that is “jabber:iq:register”. Smack API provides an easy ...

Simple REST client in Java
Today most of the mobile applications that used to communicate to some server use REST services. These services are also common practice to use with JavaScript or jQuery. Right now ...

Android: File transfer with asmack and Openfire
I have seen many peoples struggling from file transfer in asmack – Android build environment and patches for smack. I tried same library with Openfire server after some debugging ...

Chat bubble in Java Swing
This article will explain you “how to draw chat bubble in java swing application?” Chat bubble is same as call-out or thought bubble. Today most of the chat application is showing ...


