JFrame that pops-up from the taskbar like notifications.

programming

Here i have given the JAVA code to make a popup that happens exactly like the gmail desktop application does.It uses a JFrame to make the window. package com.oksbwn.popUp; import java.awt.*; import java.awt.event.*; import javax.swing.*; import com.oksbwn.ErrorHandling.handleExceptions; import resources.RscLoader; public class popMe extends JFrame { private static final long serialVersionUID = 1 L; public static void main(String[] args) throws Exception { new popMe(“hi”, “from Bikash”, “ok”, 15, 125); } public popMe(String message, String header, String image, final int time, int height) { Runnable r = new newThreadPop(message, header, image, time,…

Read More

Get System IP address in JAVA

programming

This is a code snippet to get the current IP address of a system.   import java.net.InetAddress; import java.net.UnknownHostException; public class IpAdress { //public static void main(String[] args){ public static InetAddress getIP() { InetAddress ip; try { ip = InetAddress.getLocalHost(); return ip; } catch (UnknownHostException e) { e.printStackTrace(); } return null; } }     Bikash Narayan PandaDeveloper, Tinkere, a proud Dad.. love to spend my available time playing with Tech!! wglabz.in

Read More