Hi,
U can use JTable in javax.swing package.. It has the solution to ur needs. If u go through the JTable documentation u will easily set up ur spreadsheet application. Lookup the documentation for DefaultTableModel, TableColumnModel and TableColumn while u are at it. Using these four classes u can do anything.
Hope this helps,
Reddy316