Understanding JAVA 8 Lambda Expression- Functional Programming in JAVA 8- Part 1

Java

Understanding JAVA 8 Lambdas- Functional Programming in JAVA 8- Part 1 Why Lambdas?….Lambdas is a new programming construct which lets you build JAVA applications in a completely different paradigm. So, what are the advantages that lambdas bring to the table:- Lambdas enables Functional programming in JAVA, it’s actually a paradigm shift from conventional Object Oriented programming. Readable and concise code ... Read More »

Generate Windows EXE installer setup/EXE executable file from executable JAR file using javapackager of JAVA8 JDK

Java

Generate Windows EXE installer setup/EXE executable file from executable JAR file using javapackager of JAVA8 JDK For all those who are dealing with executable JARs of technologies like SWING or any other standalone applications. Yup distributing files like these are very hefty jobs. Well if you are planning to distribute an installer file or executable file(Both EXE) for WINDOWS machine ... Read More »

Android Toast like message dialog in Java Swing

Java

Android Toast like message dialog in Java Swing If you are using SwingWorker background thread for doing long operations and if you want user to see some useful information then ofcourse you need to use process() function as it is invoked by Event Dispatcher Thread. But if you using JOptionPane.showMessageDialog(null, “message”); you can invoke message dialog from background worker thread. ... Read More »

Popup-under hack

javascript

Popup-under hack If you are working on a mobile site, you have a constraint of screen size. What if you are loading a URL from a page using window.open(targetURL,’_blank’);. For your information browser will only focus on the window which is currently opened. So, in this case, your window loading targetURL will get focus. And, suppose your boss says to ... Read More »

Java Mail API- Reading OUTLOOK mails

Java

Java Mail API- Reading OUTLOOK mails Using JAVA Mail API for reading mails has been common these days. It’s pretty easy to use. Over the internet you can get boilerplate codes for reading mails from GMAIL or YAHOO, however I find a bit tricky when it comes to reading mails from OUTLOOK. GMAIL and YAHOO provides settings feature where you ... Read More »

Integrating Facebook Login

Jkoder.com

Integrating Facebook Login Facebook login is considered as one of the most preferable way for authenticating users. This approach is also very convenient for the users as Facebook has very deep reach among users. This post will illustrate as to how to integrate Facebook login as a way of authenticating users. We will be using Javascript SDK provided by Facebook. ... Read More »

Maven- Creating a Jar together with its dependency Jars into a single executable Jar file

Apache Maven

Maven- Creating a Jar together with its dependency Jars into a single executable Jar file Suppose your boss comes and ask you to create a standalone JAVA application. Assuming you being a MAVEN lover, you created a JAVA application using MAVEN dependency management tool. Now suppose you have some MAVEN dependencies that are needed by your JAVA application. Since, it’s ... Read More »