Java Code Geeks » Harsh Raval http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Sat, 18 Apr 2015 12:00:47 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 Create new message notification pop up in Javahttp://www.javacodegeeks.com/2012/10/create-new-message-notification-pop-up.html http://www.javacodegeeks.com/2012/10/create-new-message-notification-pop-up.html#comments Tue, 16 Oct 2012 22:00:00 +0000 http://www.javacodegeeks.com/2012/10/create-new-message-notification-pop-up-in-java.html 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 below: String message = 'You got a new notification message. Isn't it awesome to have such a notification message.'; String header = ...

 

]]>
http://www.javacodegeeks.com/2012/10/create-new-message-notification-pop-up.html/feed/ 10
Useful Ant build tagshttp://www.javacodegeeks.com/2012/09/useful-ant-build-tags.html http://www.javacodegeeks.com/2012/09/useful-ant-build-tags.html#comments Thu, 27 Sep 2012 10:00:00 +0000 http://www.javacodegeeks.com/2012/10/useful-ant-build-tags.html 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 to input value. Make an ant call. Answers: 1. Make zip file: Following is the xml for making zip file in ant: <zip destfile='${destination.folder}/zipName.zip'> ...

 

]]>
http://www.javacodegeeks.com/2012/09/useful-ant-build-tags.html/feed/ 0
Transparent JFrame using JNAhttp://www.javacodegeeks.com/2012/09/transparent-jframe-using-jna.html http://www.javacodegeeks.com/2012/09/transparent-jframe-using-jna.html#comments Mon, 24 Sep 2012 19:00:00 +0000 http://www.javacodegeeks.com/2012/10/transparent-jframe-using-jna.html 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 in Eclipse is also shown in that post. Now here is the version using java natives. I have used Java Native Access (JNA) library to call native ...

 

]]>
http://www.javacodegeeks.com/2012/09/transparent-jframe-using-jna.html/feed/ 1
Make JFrame transparenthttp://www.javacodegeeks.com/2012/09/make-jframe-transparent.html http://www.javacodegeeks.com/2012/09/make-jframe-transparent.html#comments Thu, 13 Sep 2012 13:00:00 +0000 http://www.javacodegeeks.com/2012/10/make-jframe-transparent.html 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 extends JFrame { public TransparentFrame() { setTitle('Transparent Frame'); setSize(400,400); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JSlider slider = new JSlider(JSlider.HORIZONTAL); add(slider); setVisible(true); } public static void main(String[] args) { new TransparentFrame(); } } Output of ...

 

]]>
http://www.javacodegeeks.com/2012/09/make-jframe-transparent.html/feed/ 0
Gateway interaction in Smack APIhttp://www.javacodegeeks.com/2012/09/gateway-interaction-in-smack-api.html http://www.javacodegeeks.com/2012/09/gateway-interaction-in-smack-api.html#comments Wed, 12 Sep 2012 13:00:00 +0000 http://www.javacodegeeks.com/2012/10/gateway-interaction-in-smack-api.html 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 way handle gateway interaction with the server. It has predefined classes for the required namespace and operations which one can easily use and do the thing. In this article ...

 

]]>
http://www.javacodegeeks.com/2012/09/gateway-interaction-in-smack-api.html/feed/ 0
Simple REST client in Javahttp://www.javacodegeeks.com/2012/09/simple-rest-client-in-java.html http://www.javacodegeeks.com/2012/09/simple-rest-client-in-java.html#comments Tue, 11 Sep 2012 13:00:00 +0000 http://www.javacodegeeks.com/2012/10/simple-rest-client-in-java.html 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 I know 2 ways to create client for REST service in java and in this article I will try to demonstrate both the ways I ...

 

]]>
http://www.javacodegeeks.com/2012/09/simple-rest-client-in-java.html/feed/ 5
Android: File transfer with asmack and Openfirehttp://www.javacodegeeks.com/2012/08/android-file-transfer-with-asmack-and.html http://www.javacodegeeks.com/2012/08/android-file-transfer-with-asmack-and.html#comments Tue, 21 Aug 2012 22:00:00 +0000 http://www.javacodegeeks.com/2012/10/android-file-transfer-with-asmack-and-openfire.html 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 got success in it. So I will like to share my problem and solution for it. I found that the problem is in Byte Stream host, ...

 

]]>
http://www.javacodegeeks.com/2012/08/android-file-transfer-with-asmack-and.html/feed/ 3
Chat bubble in Java Swinghttp://www.javacodegeeks.com/2012/08/chat-bubble-in-java-swing.html http://www.javacodegeeks.com/2012/08/chat-bubble-in-java-swing.html#comments Thu, 02 Aug 2012 01:00:00 +0000 http://www.javacodegeeks.com/2012/10/chat-bubble-in-java-swing.html 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 conversion in this format, so this article will help you to do the same in desktop application made in java swing. Following class is ...

 

]]>
http://www.javacodegeeks.com/2012/08/chat-bubble-in-java-swing.html/feed/ 1