Posts

Kalculate next vesion

Image
  Upcoming version of Kalculate After a big launching of kalculate accounting software company is ready to release first update. Features:  Fixed the issue of 32 bit installation.. User can type and work with their regional language.. Logo in pdf report... Fix the issue of unresponsive screens.. And the user can manage the logo should be displayed on report or not, and also set the alignment of logo.

store and retrieve image data to any database in java

We will insert image data into database in byte[] format Here is a piece of code to convert image data into byte[]:  // image file File file = new File("images/extjsfirstlook.jpg");  // create byte with specified size byte[] bFile = new byte[(int) file.length()]; try {  FileInputStream fileInputStream = new FileInputStream(file);   // bFile is initialized fileInputStream.read(bFile); fileInputStream.close(); } catch (Exception e) { e.printStackTrace(); } //now you can store bFile in database       Here is a piece of code to convert byte[] data into image: try {     // create output stream with a file path where you want to store  // your image on your drive FileOutputStream fos = FileOutputStream("images/output.jpg"); // it will write data byte data into the file specified fos.write(book.getImage()); fos.close() } catch (Exception e) { e.printStackTrace(); } ...

To convert currency from number to string format in Java

Here is a code : import java.util.Locale; import java.util.regex.Pattern; /**  * CurrencyConverter is used to convert the given amount string into words  *  * @author Ravi Sharma  */ public class CurrencyConverter { /** String array of words for tens Names */ private static final String[] tensNames = { "", "", "TWENTY", "THIRTY", "FORTY", "FIFTY", "SIXTY", "SEVENTY", "EIGHTY", "NINETY" }; /** String array of words for ones Names */ private static final String[] onesNames = { "", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE", "TEN", "ELEVEN", "TWELVE", "THIRTEEN", "FOURTEEN", "FIFTEEN", "SIXTEEN", "SEVENTEEN", "EIGHTEEN", "NINETEEN...

To convert currency from number to string format in Java

Here is a code : import java.util.Locale; import java.util.regex.Pattern; /**  * CurrencyConverter is used to convert the given amount string into words  *  * @author Ravi Sharma  */ public class CurrencyConverter { /** String array of words for tens Names */ private static final String[] tensNames = { "", "", "TWENTY", "THIRTY", "FORTY", "FIFTY", "SIXTY", "SEVENTY", "EIGHTY", "NINETY" }; /** String array of words for ones Names */ private static final String[] onesNames = { "", "ONE", "TWO", "THREE", "FOUR", "FIVE", "SIX", "SEVEN", "EIGHT", "NINE", "TEN", "ELEVEN", "TWELVE", "THIRTEEN", "FOURTEEN", "FIFTEEN", "SIXTEEN", "SEVENTEEN", "EIGHTEEN", "NINETEEN...

Launch of KalCulate

Image
KalCulate - is an financial accounting software package purely written on java and FXML. It is product by  OpenLX Technologies . I am very happy to say that after 6 months of hard work finally, the kalCulate is launched on 19/5/2015 and ready to download on kalculate.com . Launching of kalCulate is done by Shri Nitin Gadkari (Minister of Transport Ministry). It is India’s first Linux based Financial Accounting & Inventory Application package. Transport Minister Shri Nitin Gadkari giving speech on Information Technology at the launching ceremony of KalCulate

How to setup java development kit on ubuntu

Download the latest jdk file in .tar.gz format from given link below http://www.oracle.com/technet…/…/javase/downloads/index.html extract the .tar.gz file open terminal type:- sudo tar -zxf jdk_file_name.tar.gz -C /path/to/extract Now set the latest jdk your default jdk type:- sudo update-alternatives --install /usr/bin/java java /jdk/home/bin/java 1 sudo update-alternatives --install /usr/bin/javac javac /jdk/home/bin/javac 1 Now check your java version type:- java -version you will find your java installed in additional you can set JAVA_HOME variable in path type :- sudo nano /etc/bash.bashrc add this lines at the end of file JAVA_HOME=/path/to/jdk/ export JAVA_HOME now save your changes and run !!!!!!!!!!!!!

Example of Progress Bar and Progress Indicator in JavaFX 8

Image
Here is the code ///////////////////////////////////////////////////////////////////////////////////////// import javafx.application.Application; import javafx.geometry.Pos; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ProgressBar; import javafx.scene.control.ProgressIndicator; import javafx.scene.layout.HBox; import javafx.scene.layout.Priority; import javafx.scene.layout.VBox; import javafx.stage.Stage; /**  *   * @author Ravi Sharma  *  */ public class ProgressSample extends Application { final Float[] values = new Float[] { -1.0f, 0f, 0.6f, 1.0f }; final Label[] labels = new Label[values.length]; final ProgressBar[] pbs = new ProgressBar[values.length]; final ProgressIndicator[] pins = new ProgressIndicator[values.length]; final HBox hbs[] = new HBox[values.length]; @Override public void start(Stage stage) { Group root = ...