posted 21 years ago
#1. Create an extra JPanel. Instead of adding components directly to the content pane of the frame, add them to this panel. Put this panel in a JScrollPane, and then add the JScrollPane to the content pane.
#2. There are lots of ways to do this... you can extend dialog to have methods to set each field, you can have one method that takes some kind of collection (like a hashtable) that is filled out with the data, instead of a collection, you can pass the table model and the row number you want to display... etc. There is no built in way to do this, but there are several ways to do it yourself...
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.