Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
MyBancoCredito - JTabella.java

JTabella.java

Caricato da: Bonny
Scarica il programma completo

  1. package jcredito;
  2.  
  3. import javax.swing.*;
  4.  
  5. public class JTabella extends JFrame {
  6.  
  7.     private Jdbmanager jdb;
  8.     private JPanel p;
  9.  
  10.     public JTabella(String us) {
  11.  
  12.         super("Estratto conto");
  13.         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  14.         jdb = new Jdbmanager();
  15.         p = jdb.table(us);
  16.         this.getContentPane().add(p, "Center");
  17.         //this.setResizable(false);
  18.         this.setLocation(150, 100);
  19.         this.setVisible(true);
  20.         this.pack();
  21.     }
  22.  
  23.     public JTabella(String us, String d1, String d2) {
  24.  
  25.         super("Estratto conto");
  26.         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  27.         jdb = new Jdbmanager();
  28.         p = jdb.table(us, d1, d2);
  29.         this.getContentPane().add(p, "Center");
  30.         //this.setResizable(false);
  31.         this.setLocation(150, 100);
  32.         this.setVisible(true);
  33.         this.pack();
  34.     }
  35. }