• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Allow editable JTable columns

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all, while I work with JAVA, but there is always some new challenge or something new to learn.
I am developing an application that implements a JTable , it has 4 columns , some columns need to be " editable " and others are not.
I've been overwriting the " isCellEditable (int row , int col) " method but I can not make a column editable and another not.
I would like to know if anyone had a similar problem and how they have solved .

I leave some info for my project, it is a form of type JFrame that calls a tablaEscuelaRel ( method) , the method is called from a formComponentShown () event.
The objective is to deploy the form method calls are made, among these methods , one that allows me to set " not editable Columns " and " Editable Columns " .

From already thank you very much and I hope someone give me a hand with this issue before going crazy with this issue.

Codes :

Captura-de-pantalla-de-2014-01-13-02-20-24.png
[Thumbnail for Captura-de-pantalla-de-2014-01-13-02-20-24.png]
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since you are new to the Ranch, I have added code tags, which you should always use, and see how much better it looks
Keywords appear in blue, so you can see a spelling error on Catch which is in black.
Use /*…*/ not // for multiple‑line comments and // not / / for line‑end comments or commenting out.
 
reply
    Bookmark Topic Watch Topic
  • New Topic