0
votes

I've created a table, populated from a database.

The table is returned from a separate method as type Table.

Upon receiving the table, I do the following:

Table tbl = fC.makeTable();
findTblContainer(f).addComponent(tbl);

When running the application, I only get a small white box with no apparent text inside. Am I doing something incorrectly?

Thanks. ~Ari

EDIT:

This is the method:

protected void beforeFines(Form f) {
        try {
            Table tbl = fC.makeTable();
            findTblContainer(f).addComponent(tbl);
            findTblContainer(f).animateLayout(5);
        } catch (SQLException ex) {
            System.out.println("No fines found!");
        }
    }
1

1 Answers

0
votes

What is the layout of the table container? I suggest placing the table in a center of a BorderLayout although that isn't essential.

If this is done after the form was shown you need to revalidate() the form or use animateLayout(int)/animateHierarchy(int) or some other method to indicate the layout change completed.