JTable Help


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: JTable Help

  1. #1
    Join Date
    Dec 2004
    Posts
    1

    JTable Help

    Hi

    I am using a JTable to display information from an Access Database and i have a few questions which i hope can answer.

    1) How can you get a full row select in a Jtable, where the whole row/record is selected, rather than an individual entry?

    2) Is it possible for the cells that are displayed in the JTable to be uneditable?

    Thanks in advance

  2. #2
    Join Date
    Mar 2004
    Posts
    635
    1)
    I think this is the method.
    JTable.setSelectionMode();

    2)
    override the isEditable() method by creating your own Renderer class. (I think that's it) Or maybe it was the TableModel? Sorry, I can't remember at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center