Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

new items aren't appearing

Status
Not open for further replies.

grindstonegirl

Technical User
Jun 12, 2003
29
0
0
US
hi
i have a class that extends AbstractTableModel. i create a table and add in some rows. After I add them if I display a JOptionPane message box, the items will appear However, unless I display the message box they don't appear. I tried doing myFrame.setVisible(true); but that isn't helping either. is there anyway i can force the data to display? thanks
 
I figured it out. I was running a seperate program that wrote to a file, and then i opened the file and read in the info for the table. I wasn't waiting to make sure the first program had completed it's task. But when i displayed a message dialog, it gave the program enough time to finish so it seemed to be working. I just had to make sure i wait for the file to finish. so you can disregard my post. thanks anyways
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top