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

  • SEARCH
  • Home
  • 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 7684613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:04:07+00:00 2026-05-31T19:04:07+00:00

I use a JTable to display a search result of articles from a database

  • 0

I use a JTable to display a search result of articles from a database and i have a couple of columns that are float for the price of the article.

Some of the columns are editable so that you can adjust the price before you save the articlerow to offerlines.

But as you edit the price of an article you have to enter the price as 200.30 but in my current locale that is sweden, we use 200,30.

How do I accomplish so that i dont get an error while trying to write with a comma instead of dot?

This is how it looks today, with “262.0” and that is what is needed.
This is current how you have to enter data

But here is how i want it to work, users shouldnt have to think about that they use dot as decimal separator. So I want to be able to enter comma. “262,0”. But i get a red error rekt as i try to enter this and I dont know how to come around this
This is how i want it to be, but as you see it turns red when i try to enter with a comma

  • 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-31T19:04:08+00:00Added an answer on May 31, 2026 at 7:04 pm

    You probably need to implement a custom cell editor.
    Perhaps JTable cell editor number format will help.

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

Sidebar

Related Questions

I have a JTable that I want to use to display some data (a
I have a JTable that loads data from a database. Because sometimes there's too
I use a JTable to display data sourced from a streaming data feed. Each
I have a jTable and I want to display in it a result of
I use Hibernate/Spring and a MySQL Database for my data management. Currently I display
I am using netbeans and trying to use jTable from its designer's section. The
I have a JTable and I need to be able to reorder the columns.
How can I use a JTable to display & edit attribute properties for entities
I currently have something like this: $(.jtable tbody td).not(.DeleteLicense).hover( How can I use delegate
I've got a JTable with a model that has about 20 columns. That's more

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.