Home Discussion Discuss: Disabling User Edits in a JTable Component

  • Editable CellAnd_Dev February 28, 2012 at 10:12 PM

    Thanks a lot for the post. your solution really solved my problem. Now my cells have become non-editable. Thanks a tonne!!! :)

  • doesnt workfred berzunza March 4, 2012 at 1:14 PM

    Disabling User Edits in a JTable Component doesnt workd please check

  • Cell NOT editblePapri May 16, 2012 at 12:57 AM

    Thank you very much for this post. I was looking for the solution for two days. Last few hours I've tried several other forums. None of them worked for my situation. Thank you again.

  • wowmoke September 30, 2012 at 8:18 PM

    wow thanks!

  • ThanksDénes Berta February 2, 2014 at 7:56 PM

    Thank you so much. I've found a lot of similar solution, but I just understand it from yours.

Post your Comment



Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Related Articles
Java-Tutorials

Disabling User Edits in a JTable Component
Disabling User Edits in a JTable Component   ... to disable the user edits in a JTable component means editing is not allow to user. User can't edit any cell of JTable according  to his/her own requirements 

Java Magazine Questions

restrict jtable editing
){ return false; } }   Disabling User Edits in a JTable Component...restrict jtable editing  How to restrict jtable from editing or JTable disable editing?   public class MyTableModel extends 

Java-Tutorials

Creating a JTable Component
Creating a JTable Component       Now you can easily create a JTable component. Here, the procedure for creating a JTable component is given with the brief description 

Java Beginners

JTable
JTable   how to select a definite cell which containing a similar text containg to the one which the user entering from a jtable at runtime in java 

Core Java

Java JTable
the JTable class and a subclass of JComponent. It is a user-interface component...; JComponent.component is more flexible Java Swing component that allows the user..., optionally allowing the user to edit the data. JTable does not contain or cache data 

Swing AWT

JTable populate with resultset.
JTable populate with resultset.  How to diplay data of resultset using JTable?   JTable is component of java swing toolkit. JTable class is helpful in displaying data in tabular format. You can also edit data. JTable 

Java-Tutorials

Setting Tool Tips on Cells in a JTable
the tool tips in the cells in a JTable component. So, you will be able to know... tips on returned  JTable component. For getting the JComponent object use... Setting Tool Tips on Cells in a JTable    

Java-Tutorials

Setting Grid Line in JTable
Setting Grid Line in JTable     ... JTable that contains predefined grid line with black color. But in this Java programming tutorial, you will learn how to set the colored grid line in JTable 

Java-Tutorials

Create a Custom Cell Renderer in a JTable
cell renderer in a JTable component. Here, first of all you will know about the cell renderer in JTable. The cell renderer is the component of  JTable... Create a Custom Cell Renderer in a JTable    

Java-Tutorials

Packing a JTable Component
Packing a JTable Component     ...; a JTable by adjusting it in the center.  Description of program: This program helps you in packing a JTable component. For this you will need a JTable having 

Java-Tutorials

Setting an Icon with Text in a Column Head of JTable
to set an icon with text in a column head of JTable component. But what is icon? Icon: This is a graphical user interface (GUI). An image or picture... Setting an Icon with Text in a Column Head of JTable 

Java-Tutorials

Moving a Column in JTable
Moving a Column in JTable       This section describes, how to move a column in JTable component. Moving is a very simple method  that  moves the data 

Java-Tutorials

Setting Cell Values in JTable
values in JTable component. For this you must have the some previous knowledge about JTable. A cell is known as the format of  a row and a column in ... Setting Cell Values in JTable      

Java-Tutorials

Getting Cell Values in a JTable
values in a JTable component. It is a same as setting the cell values in a JTable... Getting Cell Values in a JTable     ... to get the cell values in a JTable. This program creates a JTable that contains some 

Java-Tutorials

Sharing a Table Model between JTable Components
Sharing a Table Model between JTable Components... how to share a table model between JTable components. Whenever, you want to do for sharing the resources between the JTable components, a table model 

Java Beginners

Jtable with servlet - Java Beginners
Jtable with servlet   Actually I have embedded the html with servlet code in a java class. where user will enter the information in textboxes... time I want the JTable to display the record saved in the database,the JTable 

Java Beginners

JTable with Date Picker
JTable with Date Picker  Hi, I'd like to implement the following but I have no idea where to start: I have a JTable with 1 column containing Date... that i'd like to pop up when this cell is clicked and allowing the user to select 

Java-Tutorials

Changing the Name of Column in a JTable
the name of column in JTable component. You have learnt the JTable containing ... Changing the Name of Column in a JTable   ... the name in the name of column in a JTable in this following  example 

Java Beginners

How to insert rows in jTable?
How to insert rows in jTable?  Hi, I need to take input from user using JTable. I want an empty row to appear after clicking a insert button. The values will be entered in this empty row. I have searched on this but could 

Java-Tutorials

Creating a Scrollable JTable
section, you will learn how to create a scrollable JTable component. When any table has large volume of data, the use of scrollbar is applied in the JTable... Creating a Scrollable JTable : Swing Tutorials  

Swing AWT

problem with JTable - Swing AWT
TableCellRenderer{ public Component getTableCellRendererComponent( JTable t... to swings.i was having an assignment like i need to create a JTable... an action event such that if i check the checkbox outside the JTable,all the checkboxes 

Swing AWT

jtable-adding a row dynamically
jtable-adding a row dynamically  hi..i am doing a project for pharmacy .. *pblm:* when i want to enter the details in jtable while running... and if the user want enter the data to a 4th row he must press enter at the end of the 3rd 

Java Beginners

jtable combo - Java Beginners
jtable combo  i am using jtable (using defaulttablemodel) ,when i am click on a particular cell of jtable i want to display the combo box...); JTable table = new JTable(model); TableColumnModel tcm = table.getColumnModel 

JDBC Questions

Connecting JTable to database - JDBC
Connecting JTable to database  Hi.. I am doing a project on Project Management System for which i created the user interfaces.. I have a user... to store this JTable content in my database table.. This is a very important 

Java Beginners

JTable
JTable  Values to be displayed in JTextfield when Clicked on JTable Cells 

Java Beginners

jtable in java swing
jtable in java swing  hai friends... i am creating 1 GUI having 1 table, that table contain 3 fields(columns) and 10 rows.. user can enter values... entering the values in d 2nd column the user hit on the enter button.then the focus 

Java Beginners

JTable
JTable  i want to delete record from JTable using a MenuItem DELETE. and values of JTable are fetched from database....please reply soon 

Java Beginners

update a JTable - Java Beginners
update a JTable   how to update a JTable with Mysql data through user... in an updatable JTable You would create the table as follows: conn... = new ResultSetTableModel(rs); table = new JTable(model 

Java Beginners

update a JTable - Java Beginners
update a JTable   i have tried your advice as how to update a JTable with mysql data through user interface but it is resulting some errors here... main(String args[]) { JTable table; Connection con = null 

Java-Tutorials

Removing a Column from a JTable
from a JTable component that uses the table model. Removing a column from a JTable... Removing a Column from a JTable     ... to be deleted from the JTable.  Description of program: This program helps 

DMCA.com