JTable in JFrame

H

helena

I'm using JTable component inside JFrame.Frame has BorederLayout and
table component is situated in center..
My problem is little complicated , i'm adding row's through
addRow(Vector v) of defaultTableModel.Object row consists of String and
FormattedTextField values.
When i add rows ,put some data in it ,and then remove them all ,
formattedtextField that i edited last stay's on te screen .It's like
repaint problem.When i do the resize(with mouse) of frame field disapear
..But when i call the repaint method of JFrame ,fireTableDataChanged of
model ,or do the setSize() of frame to resize it , textBox stays...
My question is what are all the methods called when we do te resize of
frame with mouse?
Thank you.
helena
 
Z

zero

helena said:
I'm using JTable component inside JFrame.Frame has BorederLayout and
table component is situated in center..
My problem is little complicated , i'm adding row's through
addRow(Vector v) of defaultTableModel.Object row consists of String and
FormattedTextField values.
When i add rows ,put some data in it ,and then remove them all ,
formattedtextField that i edited last stay's on te screen .It's like
repaint problem.When i do the resize(with mouse) of frame field disapear
.But when i call the repaint method of JFrame ,fireTableDataChanged of
model ,or do the setSize() of frame to resize it , textBox stays...
My question is what are all the methods called when we do te resize of
frame with mouse?
Thank you.
helena

Are you using the latest compiler & JRE version? Try updating, and see if
it still happens. I remember having similar repaint problems in 1.4, but
only on one machine (windows xp pro sp1). I have never again encountered
those problems after an update of the JDK & JRE.

If the problem persists, or if you can't switch versions for some reason,
try posting some code. Perhaps comp.lang.java.gui would be a better place
though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top