How can I get string that is the same as the name show on the Jtable UI

I need to implement the jtable keystore searching feature.
but I face one problem. because in my application, there are many different objects for the data vector in the model of different tables.
in order to using the same class to do the search for all of the tables. I need to get the same string for the items showing in the table instead using
table.getValueAt(r, c) to get a object. threrefore I can compare two strings.
any advice is appreciated.
Jack Tie

but the problem is Can we make sure the string we get
from table.getValueAt(r,c).toString
is the same as the string show on the JTable UI.That probably depends on the TableCellRenderer that is asked to render that particular column. I would assume that the default behavior is what you want, i.e. that the renderer uses toString() on the Object.

Similar Messages

Maybe you are looking for

  • [Solved] X11 won't start after fresh install

    Hihi! I've been using Debian for quite some time now but I want to switch to Arch. My notebook is fairly modern and this doesn't mix well with Debian and as such my dGPU is basically unusable. My preferred method of installing Debian is to start head

  • Airport Express Ethernet Problem

    I tried searching for help and couldn't find anything. I use an airport express as a wireless router attached to a cable modem. I keep loosing my connection to the internet however the indicator light stays green. Unplugging the ethernet cord and plu

  • Script rac

    Hi, Db : 10.2 Os : aix6/7,redhat 5 We have 5 node cluster.For clearing inactive sessions in rac is very difficult.We need to login each and every instance(ssh) and then clear.But 11g is very simple. Is there any SHELL script to clear all sessions fro

  • Jsp + business services

    i'm trying to pass/get parameters from one jsp page to another in the traditional manner: <input name="corsia" type="text"/> String corsia = request.getParameter("corsia"); on the same page i need to use some business object taken from the "data cont

  • EP & XI on same server and same instance

    Dear Experts, Can i use SAP EP and XI server on same host,SID and same instance number. I read old messages on SDN but need perfect answer. Regards, Vishal Borisa.