aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Problem with Jable with ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem with Jable with ResultSet" Watch "Problem with Jable with ResultSet" New topic
Author

Problem with Jable with ResultSet

neo devine
Greenhorn

Joined: Aug 18, 2012
Posts: 1
Hello Everybody:

i´m new in this forum and this is my first thread, i hope you can help me, i have a problem with JTable and ResultSetScrollable, the question is that i have a JTable with AbstractTableModel, in the class AbstractTableModel, i override the three methods, getvalueat, getcolumnname....also i have a ComboBox, when i select a value of the ComboBox, the JTable shows the data associated with the ComboBox.

Well, the problem is that JTable only shows INTEGER data, but String not, i don´t know why this could be.

if someone knows anything about this, would be very grateful.

this is a part of the code:

**********This is the AbstractTableModel*****************************************


*************************************************************
****This is the ItemListener for the ComboBox*******************

***************************************************

If you need more code, please tell me and i paste it.

Thxxxxxxxxxxxxxxxxxxxx a lot!!!
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19781
    
  20

Do you see any exceptions printed in the console?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/awt-swing/62355-problem-jtable-resultset.html

edit http://www.java.net/forum/topic/jdk/java-se/problem-jtable-and-resultset


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Jable with ResultSet