// This is the window where I will show a price according to the user's options in the main window
public class VentanaResultados extends JFrame {
public VentanaResultados() {
Container cp = getContentPane();
cp.setLayout(new BorderLayout());
// Nombres de las columnas
final String[] Columnas = {"Familia", "Precio por día"};
// Datos
Object[][] datos = {
{"", ""}};
JTable tabla = new JTable(datos, Columnas);
tabla.setFont(new Font("Arial", Font.BOLD, 18));
tabla.setRowHeight(24);
JScrollPane jsp = new JScrollPane(tabla); // ,ver , hor) ;
cp.add(jsp, BorderLayout.CENTER);
setSize(500, 300);
setVisible(true);
}
}