00001 package clientswing.UI;
00002
00003 import javax.swing.*;
00004 import java.awt.*;
00005
00006 import clientswing.model.*;
00007
00011 public class ResponseForm extends BaseForm {
00012
00013 JTable tabella = new JTable ();
00017 public ResponseForm(XResponseRowSet rowSet) {
00018
00019 tabella.setBounds(new Rectangle(30, 30, 200, 200));
00020 tabella.setForeground(Color.white);
00021 tabella.setBorder(BorderFactory.createEtchedBorder());
00022 tabella.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
00023 tabella.setCellSelectionEnabled(true);
00024 tabella.setColumnSelectionAllowed(false);
00025 tabella.setGridColor(Color.gray);
00026 tabella.setRowSelectionAllowed(false);
00027 tabella.setBackground(Color.lightGray);
00028 tabella.setFont(new java.awt.Font("Dialog", 1, 14));
00029
00030
00031 tabella.setModel(new TableResponseModel(rowSet));
00032
00033 this.getContentPane().setLayout(null);
00034 this.getContentPane().add(tabella);
00035 this.setSize(300,300);
00036
00037 }
00038 }