Results 1 to 3 of 3
  1. #1
    kbro3 is offline Member
    Join Date
    Feb 2011
    Posts
    24
    Rep Power
    0

    Default JTable font while editing cell

    Hi guys,

    Having a problem figuring out how to change the font of the a cell while editing.

    So, I have cells which are 12pt font, when I'm editing a cell, I want what the user types in to be larger than that, but I can't seem to achieve this. The user's typed text is default size, then when they're done, it goes to 12pt.

    What am I missing?

    Thanks!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

  3. #3
    kbro3 is offline Member
    Join Date
    Feb 2011
    Posts
    24
    Rep Power
    0

    Default

    Ah, worked it out. I ended up overriding prepareEditor() in the table.

    Cheers.

Similar Threads

  1. Replies: 1
    Last Post: 10-18-2010, 06:48 AM
  2. Programmatically starting cell editing in JTable
    By javaexplorer in forum AWT / Swing
    Replies: 2
    Last Post: 05-21-2010, 04:33 PM
  3. Start editing in a cell in JTable on gaining focus
    By javaexplorer in forum AWT / Swing
    Replies: 2
    Last Post: 05-05-2010, 07:34 AM
  4. set different font for each cell in JTable
    By success21061985 in forum AWT / Swing
    Replies: 3
    Last Post: 09-10-2008, 02:06 PM
  5. jTable Cell editing
    By mahaling_m in forum AWT / Swing
    Replies: 0
    Last Post: 06-23-2008, 08:17 AM

Posting Permissions

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