Results 1 to 5 of 5
  1. #1
    Kilian is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default JTable don't display single Gridline

    So I am trying to 'get rid' of a single gridline in a JTable. it would also be okay if I could change the color of that line to the background color. I have no idea how to do so... was looking through other forums but didn't find any good idea...
    Thanks for the help.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,932
    Rep Power
    8

    Default

    I'm not exactly sure what you're asking, so you could be looking for a few different things.

    Perhaps this: JTable (Java Platform SE 6)

    Or perhaps you should use a custom Renderer?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Kilian is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default

    ...setShowHorizontalLines(false) is not exactly what I am looking for. I actually want that the JTable doesn't display a single grid-line not none of them. But I guess I will have to do it with a renderer then. Thx..

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

    Default

    But I guess I will have to do it with a renderer
    As you were told on the Oracle forums.
    OTN Discussion Forums : JTable gridlines ...

    db

  5. #5
    Kilian is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

Similar Threads

  1. JTable Gridline in selected row
    By arubin in forum AWT / Swing
    Replies: 11
    Last Post: 11-24-2009, 07:05 PM
  2. JButton to display JTable
    By Nemesis777 in forum New To Java
    Replies: 0
    Last Post: 12-08-2008, 12:16 PM
  3. Display XML in JTable
    By boy22 in forum XML
    Replies: 2
    Last Post: 12-07-2008, 06:03 PM
  4. Replies: 0
    Last Post: 07-07-2008, 04:44 PM
  5. display rows in jtable
    By osval in forum AWT / Swing
    Replies: 1
    Last Post: 08-06-2007, 08:54 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
  •