Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 990039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:53:12+00:00 2026-05-16T05:53:12+00:00

For a Java application that drags data together from some sources and does some

  • 0

For a Java application that drags data together from some sources and does some calculation itself, we want to offer users the possibility to use their own format strings, and would prefer the format string syntax they know from Excel (e. g. "$ "#,###.,0) which happens to be the same used in .net and Analysis Services.

The closest thing to use that I found in Java is DecimalFormat which lacks some of the features (e. g. thousands and millions formatting by putting the thousands separator at the end, the floating point numbers NaN and infinity are displayed differently, etc., and probably depending on locale, there will be some additional small differences.

For now, just the numeric formatting would suffice. Maybe date and string formatting will become a requirement in future.

Is there a library, or would we have to develop that ourselves?

I cannot imagine we are the only ones who have this issue.

POI as suggested by Noel M does not seem to offer a solution. Any other ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:53:13+00:00Added an answer on May 16, 2026 at 5:53 am

    Is there a library, or would we have to develop that ourselves?

    Check ExtenXLS, the Java Spreadsheet SDK, or its open source version OpenXLS (under GPLv.3). About OpenXLS:

    OpenXLS is the open-source version of
    ExtenXLS — the leading Java
    Spreadsheet SDK.

    OpenXLS is the no-risk way to embed
    advanced Java spreadsheet
    functionality in your applications.

    With the same industrial-strength code
    as ExtenXLS3, OpenXLS is a rock-solid
    performer which gives your Java
    applications the spreadsheet
    functionality your users demand — and
    then some!

    Give your users business intelligence
    applications and reports in the format
    they know and love, complete with
    Charts, images, VB code, and all of
    the features of Excel intact.

    I had a quick look at the API and found this FormatHandle#convertFormatString(String) that converts an Excel-style format string to a Java Format string.

    I don’t know if it will match your constraints but it’s definitely a serious product.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Java-application that loads data from a legacy file format into an
I want to create a java application that allows users to import a web
We are running a Java application that sometimes freezes because some thread is using
I have a swing Java application that preserves a lot of data (you can
I have a java application that streams raw data and draws real time plots
I write an (Java-) application that streams a video from one peer to another.
I have a Java console application that is launched from a batch script in
I'm creating a java desktop application that draws a map in a JFrame designing
I have a standalone java application that fires up several JMS consumers using the
I have a Java application that run as a background service, i.e. no GUI.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.