File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable" Watch "JTable" New topic
Author

JTable

Adrian Krebs
Greenhorn

Joined: Apr 10, 2002
Posts: 11
i want to select a row in from a jtable. but it shouldn't be possible to delete the datas. which properties i have to set for this.
thanks
Renee Zhang
Ranch Hand

Joined: Sep 10, 2001
Posts: 72
Hi, Adrian,
if you use yourtable.enabled(false), then you can't select anything in the table. If you use JTable youTable = new JTable (data or yourTableModel) {
public boolean isCellEditable(int row, int column) {return false; }; Then you can select the row, but you can't change any data in the table.
I hope it can solve your problem and good luck.
Renee
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable
 
Similar Threads
jtable
JTable
jtable
JTable
JTable