LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2009, 01:03 PM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
JTables


Hi,

It is actually my first time that I deal with JTables and I would like to ask some help. I have a JTable which when the user clicks on a row I want to be highlighted. Secondly I would like to ask you about writing mouse event listeners/handlers for JTables. I want to know how is it possible to write a double click handler. Finally, I would like to know how is it possible on a right click on a row a list of options to be appeared.
I would be really pleased if anyone suggest any tutorial or give a snippet.

Thank you.
 
Old 04-02-2009, 12:01 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

As far as JTables, please look at the tutorial I mentioned in my post to your other question:

http://java.sun.com/docs/books/tutor...elistener.html

As far as <right-click> and <double-click> ... I don't know how easy or difficult that might be. This reference might help:

http://java.sun.com/docs/books/tutor...elistener.html

Suggestion: maybe it would be better to focus on the JTable itself first, and wait until version 2.0 before you start adding features like <right-click>.

'Hope that helps .. PSM
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java - method names & jTables bingo Programming 9 09-09-2007 11:39 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration