Category Archives: Java

Android Volley Sending data twice

When you use Android Volley Library to make a http post request, the default situation is that the data will be send twice. In order to avoid this, you would need to add the line 2 of the below code … Continue reading

Posted in Android, Java | Tagged , , , , | Leave a comment

Creating Jar for JavaFX Application

This is a step by step guide to creating a Jar for a JavaFX Application using IntelliJ IDEA. It is only tested on IntelliJ IDEA 2016 with Java8. Steps might be slightly different for Java7. First, open up File > … Continue reading

Posted in Java, JavaFX | Tagged , , | Leave a comment

JavaFX load data on launch

To load data on launch for a JavaFX app, you would simply need the following in your Controller. The initialize method is the first piece of code that is run when you launch the JavaFX app.

Posted in Java, JavaFX | Tagged , | Leave a comment

JavaFX: Include Button into cell for TableView

There are times when you need to have an Button for each of the row in the TableView, hence in this post I will go through how we could add a Button into the row of the TableView. c3 will … Continue reading

Posted in Java, JavaFX | Tagged , , | Leave a comment

JUnit with System.out.println

System.out.println and System.out.print will usually print the output String to the screen, however with the below code, you could actually redirect the print out to a Stream and thereafter use it for JUnit testing. //Prepare to redirect output OutputStream os … Continue reading

Posted in Java | Tagged , | 2 Comments

To open “IntelliJ IDEA” you need to install the legacy Java SE 6 runtime

I had encountered the error as per the title above. In order to resolve the error, there are two options. First it will be to simply install the legacy Java SE6 runtime. It is obvious that I did not go … Continue reading

Posted in Java | Tagged , , , , | Leave a comment