Results 1 to 4 of 4
  1. #1
    sagarvk is offline Member
    Join Date
    Jan 2015
    Posts
    25
    Rep Power
    0

    Default How to use date mask for a Date Column in jtabel?

    I need help in inserting a date mask for the column Date in jtable when the user edits the value in the row,the mask should be shown in column Date.

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: How to use date mask for a Date Column in jtabel?

    I am not certain what you mean by "data mask." Are you talking about have something like mm/dd/yyyy in the field? If so, I do not know if such a capability exists. The DateFormat and JFormattedTextField classes may offer some assistance in achieving this.

    EDIT: I just found this in the documentation --> MaskFormatter

    Regards,
    Jim
    Last edited by jim829; 01-23-2015 at 01:48 PM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    sagarvk is offline Member
    Join Date
    Jan 2015
    Posts
    25
    Rep Power
    0

    Default Re: How to use date mask for a Date Column in jtabel?

    Can you give me some help in how to bind them with a specific column of jtable?

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,995
    Rep Power
    9

    Default Re: How to use date mask for a Date Column in jtabel?

    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Replies: 5
    Last Post: 02-16-2012, 09:26 AM
  2. Replies: 4
    Last Post: 07-27-2011, 11:57 AM
  3. Replies: 2
    Last Post: 05-12-2011, 04:52 PM
  4. Compare date input to database with current date
    By hungleon88 in forum Advanced Java
    Replies: 2
    Last Post: 11-25-2008, 08:10 AM
  5. Creating a Gregorian Calendar using a Date object gives date - 1
    By prachi_goliwadekar in forum New To Java
    Replies: 1
    Last Post: 05-08-2008, 08:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •