Posts

JavaFX adds docking library for easier use, better customization

DockFX fills a void, enabling developers to build fluid, customizable interfaces similar to Visual Studio, Eclipse, or GIMP JavaFX has been Java's under-the-radar platform for building rich client applications. While it hasn't garnered the attention that rival platforms like Adobe Flash or JavaScript have received, it continues to plod along in the Java development community, with a loyal set of users. One such user is building a docking library for the platform to make it easier to use. Found on GitHub, the DockFx library was built to fill what the developer cites as a void for docking frameworks available for JavaFX. "DockFX is a library that enables application developers to create customizable and fluid interfaces for their end users, move side panels, hide panels out of view, or drag panels out and get a closer look,". "The library makes it possible to create an interface similar to Visual Studio, Eclipse, or GIMP in very little time without ...

A Beginner’s Guide to Google AdSense

 Sure, affiliate marketing is an excellent way to monetize a web site or blog. It has the amazing benefit of not requiring stock, and in many cases it’s a set and forget strategy. Often though, many affiliates, including myself, will also run Google AdSense on their web sites. Adsense is a nice alternative, or complimentary monetization strategy to affiliate marketing. My income increases when using AdSense – my affiliate sales are unaffected It used to be that I was afraid to “lose customers” when implementing Google AdSense on my affiliate sites, because when they click the AdSense ads they leave the web site. But test after test showed me that implementing AdSense often did not have any negative effect on affiliate commissions. So, really all it did was boost my income and allowed me to distribute risk by having more than just one monetization strategy. AdSense ads run in designated areas on your web site – advertisers pay Google to run ads there – but you get ...

Do you know about XUL?

What is XUL and why was it created? XUL (pronounced "zool" and rhyming with "cool") was created to make development of the Mozilla browser easier and faster. It is an XML language so all features available to XML are also available to XUL. Most applications need to be developed using features of a specific platform making building cross-platform software time-consuming and costly. A number of cross-platform solutions have been developed in the past. Java, for example, has portability as a main selling point. XUL is one such language designed specifically for building portable user interfaces. It takes a long time to build an application even for only one platform. The time required to compile and debug can be lengthy. With XUL, an interface can be implemented and modified quickly and easily. XUL has all the advantages of other XML languages. For example XHTML or other XML languages such as MathML or SVG can be inserted within it. Also, text displayed with ...

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...