[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Elegant applet resizing



I have an applet that's essentially used as a control in a web page.  The
applet is merely a JTable which accesses the database and pulls back a
representation of a particular table and displays it to the user.

I'd like to have the applet resize itself based on the size of the table
contents (unless the size would cause it to grow larger than 800 width).

Is there an elegant (read correct) way to do this?  Afaik, the object tag
requires height and width to be specified in the html tag *before* the
applet is loaded, which would imply that the sizing occurs before my
database queries execute.

Any suggestions/links are greatly appreciated.

John