Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2006

Tip: Looking for answers? Try searching our database.

selection on custom table (AbstractTableModel)

Thread view: 
Kova - 24 May 2006 18:48 GMT
Hello.
I have created my table model by extending from AbstractTableModel. I've
notice that it dosen't have methods for selection managment (dosen't
implement ListSelectionListener). Maybe a newbie question, but how do I
implement it? Java tutorial on tables and such don't mention it.

What I need is when I press connect button, the game to connect to
server that is selected on the list.

--
Kova
Vova Reznik - 24 May 2006 20:17 GMT
> Hello.
> I have created my table model by extending from AbstractTableModel. I've
[quoted text clipped - 4 lines]
> What I need is when I press connect button, the game to connect to
> server that is selected on the list.

It is not model job (MVC).
Look JTable#getSelectedRow() that return index of selected row.
Kova - 24 May 2006 22:21 GMT
> It is not model job (MVC).
> Look JTable#getSelectedRow() that return index of selected row.

oh thanks... I really missed the point here

--
Kova


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.