The Artima Developer Community
Sponsored Link

Java Answers Forum
Selection in JTable

3 replies on 1 page. Most recent reply: Apr 20, 2002 2:00 PM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 3 replies on 1 page
Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

Selection in JTable Posted: Apr 19, 2002 8:50 AM
Reply to this message Reply
Advertisement
hello,
How can i control Selction of rows in JTable,in other meaning, i want to prevent the highlitting of the selected row?
thanks.


Maysoon

Posts: 64
Nickname: hm
Registered: Mar, 2002

Re: Selection in JTable Posted: Apr 20, 2002 1:19 AM
Reply to this message Reply
Hello,
Is this problem is defficult to solve,or it is impossible?
Please, if someone have any idea about this tell me about it.
thanks

nagu

Posts: 7
Nickname: nagu
Registered: Apr, 2002

Re: Selection in JTable Posted: Apr 20, 2002 1:32 AM
Reply to this message Reply
ya it's possible.
U can use the methods available in the API.
try with setSlectionMode(int) method of the JTABLE or else u can prevent a row from selection,using the method setRowSelectionAllowed(boolean) ;

Have a nice time

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: Selection in JTable Posted: Apr 20, 2002 2:00 PM
Reply to this message Reply
John ZUKOWSKI has an excellent book where an entire chapter is dedicadet to the JTable & another on JSelection. Also, you can give a look at the follwoing web site : http://www.cs.cf.ac.uk/Dave/HCI/HCI_Handout_CALLER/

Thomas,

Flat View: This topic has 3 replies on 1 page
Topic: Testing the Forum Previous Topic   Next Topic Topic: JTextfield

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use