Results 1 to 3 of 3

Thread: hide column

  1. #1
    Join Date
    Oct 2009
    Posts
    88
    Rep Power
    0

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,447
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by anilkumar_vist View Post
    how to hide a jtable column invisble
    It depends what you want: if you want to remove an entire column it pays off to build a new TableModel and pass that to the JTable; if you just want to hide the columns content but show blanks there you have to write your own TableCellRenderer. Read the API documentation for those classes.

    kind regards,

    Jos

  3. #3
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default

    how to hide a jtable column
    Remove the TableColumn from the TableColumnModel. Read the JTable API for the method to get the TableColumnModel.

Similar Threads

  1. insert row and column and delete row and column
    By daredavil82 in forum New To Java
    Replies: 13
    Last Post: 09-22-2011, 06:10 PM
  2. How to Hide cursor
    By priya in forum Java Software
    Replies: 1
    Last Post: 12-09-2010, 09:39 PM
  3. How to hide a control in SWT?
    By lottalava in forum SWT / JFace
    Replies: 11
    Last Post: 10-18-2010, 09:52 AM
  4. Hide scrollBars from scrollPanes..
    By ehochedez in forum AWT / Swing
    Replies: 4
    Last Post: 06-30-2010, 03:48 PM
  5. hide one frame under another
    By marodia in forum AWT / Swing
    Replies: 7
    Last Post: 08-25-2009, 01:23 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
  •