The Artima Developer Community
Sponsored Link

Java Answers Forum
How can I select a particular row in a JDBTable ?

3 replies on 1 page. Most recent reply: Sep 19, 2003 5:32 AM by mausam

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
Alexandre

Posts: 4
Nickname: aalleexx
Registered: Sep, 2003

How can I select a particular row in a JDBTable ? Posted: Sep 18, 2003 1:34 PM
Reply to this message Reply
Advertisement
Hi,

If someone knows how to select a row in jdbTable, It would be great because I didn't find it...

there's the "get" method... jdbTableTest.getselectedrow()

but there's no setselectedrow(3) for example.

Thanks !


zenykx

Posts: 69
Nickname: zenykx
Registered: May, 2003

Re: How can I select a particular row in a JDBTable ? Posted: Sep 18, 2003 5:20 PM
Reply to this message Reply
Firstly, do you know anything about Java?
Secondly, did you try to learn something about Java?
Thirdly, did you find inside the SDK a class named JDBTable?
Fourthly, when you will be able to anwer to the first 3 questions I think you will get the answer by yourself, or you will be able to ask a real question.

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: How can I select a particular row in a JDBTable ? Posted: Sep 19, 2003 3:55 AM
Reply to this message Reply
No pulling legs...

I guess he has a JTable named as JDBTable ....
if that is the case use setSelectionIntereval method

mausam

Posts: 243
Nickname: mausam
Registered: Sep, 2003

Re: How can I select a particular row in a JDBTable ? Posted: Sep 19, 2003 5:32 AM
Reply to this message Reply
table.addRowSelectionInterval(int index0, int index1)

use index0 = row u want to select and index1 = the same row number

Flat View: This topic has 3 replies on 1 page
Topic: Re: error: Invalid class file format , major-minor version is too recent Previous Topic   Next Topic Topic: char problem

Sponsored Links



Google
  Web Artima.com   

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