Advertisement
Guest User

Untitled

a guest
Jun 11th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 22.63 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package ligakoszykowki;
  7.  
  8. import java.sql.CallableStatement;
  9. import java.sql.ResultSet;
  10. import java.sql.SQLException;
  11. import java.sql.Statement;
  12. import java.util.logging.Level;
  13. import java.util.logging.Logger;
  14. import javax.swing.table.DefaultTableModel;
  15.  
  16. /**
  17.  *
  18.  * @author Mario
  19.  */
  20. public class LigaKoszykowki extends javax.swing.JFrame {
  21.  
  22.     private ResultSet rs;
  23.     private int status = 1;
  24.  
  25.     /**
  26.      * Creates new form LigaKoszykowki
  27.      */
  28.     public LigaKoszykowki() {
  29.         try {
  30.             PolaczZBaza.polacz();
  31.             initComponents();
  32.         } catch (SQLException ex) {
  33.             Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  34.         } catch (ClassNotFoundException ex) {
  35.             Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  36.         }
  37.     }
  38.  
  39.     /**
  40.      * This method is called from within the constructor to initialize the form.
  41.      * WARNING: Do NOT modify this code. The content of this method is always
  42.      * regenerated by the Form Editor.
  43.      */
  44.     @SuppressWarnings("unchecked")
  45.     // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
  46.     private void initComponents() {
  47.  
  48.         jPanel1 = new javax.swing.JPanel();
  49.         jScrollPane1 = new javax.swing.JScrollPane();
  50.         tabela = new javax.swing.JTable();
  51.         jButton1 = new javax.swing.JButton();
  52.         jButton2 = new javax.swing.JButton();
  53.         jButton3 = new javax.swing.JButton();
  54.         jButton4 = new javax.swing.JButton();
  55.         jButton5 = new javax.swing.JButton();
  56.         przyciskDodaj = new javax.swing.JButton();
  57.         jButton7 = new javax.swing.JButton();
  58.         przyciskEdytuj = new javax.swing.JButton();
  59.         jButton9 = new javax.swing.JButton();
  60.  
  61.         setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  62.  
  63.         tabela.setModel(new javax.swing.table.DefaultTableModel(
  64.             new Object [][] {
  65.                 {null, null, null, null},
  66.                 {null, null, null, null},
  67.                 {null, null, null, null},
  68.                 {null, null, null, null}
  69.             },
  70.             new String [] {
  71.                 "Title 1", "Title 2", "Title 3", "Title 4"
  72.             }
  73.         ));
  74.         jScrollPane1.setViewportView(tabela);
  75.  
  76.         jButton1.setText("Drużyny");
  77.         jButton1.addActionListener(new java.awt.event.ActionListener() {
  78.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  79.                 jButton1ActionPerformed(evt);
  80.             }
  81.         });
  82.  
  83.         jButton2.setText("Koszykarze");
  84.         jButton2.addActionListener(new java.awt.event.ActionListener() {
  85.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  86.                 jButton2ActionPerformed(evt);
  87.             }
  88.         });
  89.  
  90.         jButton3.setText("Mecze");
  91.         jButton3.addActionListener(new java.awt.event.ActionListener() {
  92.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  93.                 jButton3ActionPerformed(evt);
  94.             }
  95.         });
  96.  
  97.         jButton4.setText("Statystyki koszykarzy");
  98.         jButton4.addActionListener(new java.awt.event.ActionListener() {
  99.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  100.                 jButton4ActionPerformed(evt);
  101.             }
  102.         });
  103.  
  104.         jButton5.setText("Statystyki meczu");
  105.         jButton5.addActionListener(new java.awt.event.ActionListener() {
  106.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  107.                 jButton5ActionPerformed(evt);
  108.             }
  109.         });
  110.  
  111.         przyciskDodaj.setText("Dodaj");
  112.         przyciskDodaj.addActionListener(new java.awt.event.ActionListener() {
  113.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  114.                 przyciskDodajActionPerformed(evt);
  115.             }
  116.         });
  117.  
  118.         jButton7.setText("Usuń");
  119.         jButton7.addActionListener(new java.awt.event.ActionListener() {
  120.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  121.                 jButton7ActionPerformed(evt);
  122.             }
  123.         });
  124.  
  125.         przyciskEdytuj.setText("Edytuj");
  126.         przyciskEdytuj.addActionListener(new java.awt.event.ActionListener() {
  127.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  128.                 przyciskEdytujActionPerformed(evt);
  129.             }
  130.         });
  131.  
  132.         jButton9.setText("Tabela Ligowa");
  133.         jButton9.addActionListener(new java.awt.event.ActionListener() {
  134.             public void actionPerformed(java.awt.event.ActionEvent evt) {
  135.                 jButton9ActionPerformed(evt);
  136.             }
  137.         });
  138.  
  139.         javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
  140.         jPanel1.setLayout(jPanel1Layout);
  141.         jPanel1Layout.setHorizontalGroup(
  142.             jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  143.             .addComponent(jScrollPane1)
  144.             .addGroup(jPanel1Layout.createSequentialGroup()
  145.                 .addComponent(jButton1)
  146.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  147.                 .addComponent(jButton2)
  148.                 .addGap(2, 2, 2)
  149.                 .addComponent(jButton3)
  150.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  151.                 .addComponent(jButton4)
  152.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  153.                 .addComponent(jButton5)
  154.                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  155.             .addGroup(jPanel1Layout.createSequentialGroup()
  156.                 .addGap(33, 33, 33)
  157.                 .addComponent(przyciskDodaj)
  158.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  159.                 .addComponent(jButton7)
  160.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  161.                 .addComponent(przyciskEdytuj)
  162.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  163.                 .addComponent(jButton9)
  164.                 .addGap(95, 95, 95))
  165.         );
  166.         jPanel1Layout.setVerticalGroup(
  167.             jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  168.             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
  169.                 .addGap(49, 49, 49)
  170.                 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  171.                     .addComponent(jButton1)
  172.                     .addComponent(jButton3)
  173.                     .addComponent(jButton2)
  174.                     .addComponent(jButton4)
  175.                     .addComponent(jButton5))
  176.                 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  177.                     .addGroup(jPanel1Layout.createSequentialGroup()
  178.                         .addGap(18, 18, 18)
  179.                         .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  180.                             .addComponent(przyciskDodaj)
  181.                             .addComponent(jButton7)
  182.                             .addComponent(przyciskEdytuj)))
  183.                     .addGroup(jPanel1Layout.createSequentialGroup()
  184.                         .addGap(33, 33, 33)
  185.                         .addComponent(jButton9)))
  186.                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 63, Short.MAX_VALUE)
  187.                 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))
  188.         );
  189.  
  190.         javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  191.         getContentPane().setLayout(layout);
  192.         layout.setHorizontalGroup(
  193.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  194.             .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  195.         );
  196.         layout.setVerticalGroup(
  197.             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  198.             .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  199.         );
  200.  
  201.         pack();
  202.     }// </editor-fold>                        
  203.  
  204.     private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  205.         przyciskEdytuj.setEnabled(false);
  206.  
  207.         ustawKoszykarze();
  208.     }                                        
  209.  
  210.     private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  211.         przyciskEdytuj.setEnabled(false);
  212.         ustawStatystykiMeczu();
  213.     }                                        
  214.  
  215.     private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  216.         przyciskEdytuj.setEnabled(true);
  217.         ustawDruzyny();
  218.     }                                        
  219.  
  220.     private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  221.         przyciskEdytuj.setEnabled(false);
  222.  
  223.         ustawMecze();
  224.     }                                        
  225.  
  226.     private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  227.         przyciskEdytuj.setEnabled(false);
  228.         ustawStatystykiKoszykarzy();    }                                        
  229.  
  230.     private void przyciskDodajActionPerformed(java.awt.event.ActionEvent evt) {                                              
  231.         if (status == 1) {
  232.             new Druzyny().setVisible(true);
  233.             ustawDruzyny();
  234.         }
  235.         if (status == 2) {
  236.             Koszykarze k = new Koszykarze();
  237.             k.setVisible(true);
  238.             ustawKoszykarze();
  239.         }
  240.         if (status == 3) {
  241.             Mecze k = new Mecze();
  242.             k.setVisible(true);
  243.             ustawKoszykarze();
  244.         }
  245.         if (status == 4) {
  246.             StatystykiKoszykarzy k = new StatystykiKoszykarzy();
  247.             k.setVisible(true);
  248.             ustawStatystykiKoszykarzy();
  249.         }
  250.         if (status == 5) {
  251.             StatystykiMeczu k = new StatystykiMeczu();
  252.             k.setVisible(true);
  253.             ustawStatystykiMeczu();
  254.         }
  255.     }                                            
  256.  
  257.     private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  258.         if (status == 1) {
  259.             try {
  260.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  261.                 System.out.println(b);
  262.                 CallableStatement c = PolaczZBaza.connection.prepareCall("call usun_druzyna(?)");
  263.                 c.setInt(1, Integer.parseInt(b.toString()));
  264.                 c.execute();
  265.                 System.out.println("asdf");
  266.                 ustawDruzyny();
  267.             } catch (SQLException ex) {
  268.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  269.             }
  270.         }
  271.         if (status == 2) {
  272.             try {
  273.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  274.                 CallableStatement c = PolaczZBaza.connection.prepareCall("call usun_koszykarza(?)");
  275.                 c.setInt(1, Integer.parseInt(b.toString()));
  276.                 c.execute();
  277.                 ustawKoszykarze();
  278.             } catch (SQLException ex) {
  279.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  280.             }
  281.         }
  282.         if (status == 3) {
  283.             try {
  284.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  285.                 CallableStatement c = PolaczZBaza.connection.prepareCall("call usun_mecz(?)");
  286.                 c.setInt(1, Integer.parseInt(b.toString()));
  287.                 c.execute();
  288.                 ustawKoszykarze();
  289.             } catch (SQLException ex) {
  290.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  291.             }
  292.         }
  293.         if (status == 3) {
  294.             try {
  295.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  296.                 CallableStatement c = PolaczZBaza.connection.prepareCall("call usun_mecz(?)");
  297.                 c.setInt(1, Integer.parseInt(b.toString()));
  298.                 c.execute();
  299.                 ustawKoszykarze();
  300.             } catch (SQLException ex) {
  301.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  302.             }
  303.         }
  304.         if (status == 4) {
  305.             try {
  306.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  307.                 Object d = tabela.getValueAt(tabela.getSelectedRow(), 1);
  308.  
  309.                 CallableStatement c = PolaczZBaza.connection.prepareCall("call usun_statystykikoszykarzy(?,?)");
  310.                 c.setInt(2, Integer.parseInt(b.toString()));
  311.                 c.setInt(1, Integer.parseInt(d.toString()));
  312.  
  313.                 c.execute();
  314.                 ustawKoszykarze();
  315.             } catch (SQLException ex) {
  316.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  317.             }
  318.         }
  319.         if (status == 5) {
  320.             try {
  321.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  322.                 CallableStatement c = PolaczZBaza.connection.prepareCall("call usun_statystykimecz(?)");
  323.                 c.setInt(1, Integer.parseInt(b.toString()));
  324.                 c.execute();
  325.                 ustawStatystykiMeczu();
  326.             } catch (SQLException ex) {
  327.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  328.             }
  329.         }
  330.     }                                        
  331.  
  332.     private void przyciskEdytujActionPerformed(java.awt.event.ActionEvent evt) {                                              
  333.         if (status == 1) {
  334.             System.out.println("1");
  335.             try {
  336.  
  337.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  338.                 rs = PolaczZBaza.s.executeQuery("SELECT * FROM druzyny WHERE ID_druzyny="
  339.                         + Integer.parseInt(b.toString()));
  340.                 rs.next();
  341.                 Druzyny d = new Druzyny();
  342.                 d.przyciskZapisz.setEnabled(true);
  343.                 d.przyciskDodaj.setEnabled(false);
  344.                 d.poleId.setText(rs.getObject(1).toString());
  345.                 d.poleNazwa.setText(rs.getObject(2).toString());
  346.                 d.poleKraj.setText(rs.getObject(3).toString());
  347.                 d.setVisible(true);
  348.             } catch (SQLException ex) {
  349.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  350.             }
  351.         } else if (status == 2) {
  352.  
  353.             try {
  354.  
  355.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  356.                 Statement ss = PolaczZBaza.connection.createStatement();
  357.                 String zapytanie = "SELECT * FROM KOSZYKARZE WHERE ID_KOSZYKARZA="
  358.                         + b.toString();
  359.                 ResultSet x = ss.executeQuery(zapytanie);
  360.                 System.out.println(zapytanie);
  361.                 Koszykarze d = new Koszykarze();
  362.                 d.przyciskZapisz.setEnabled(true);
  363.                 d.przyciskDodaj.setEnabled(false);
  364.                 d.poleId.setText(x.getObject(1).toString());
  365.                 d.poleDruzyna.setSelectedItem(x.getObject(2));
  366.                 d.poleImie.setText(x.getObject(3).toString());
  367.                 d.poleNazwisko.setText(x.getObject(4).toString());
  368.                 d.polePozycja.setSelectedItem(x.getObject(5));
  369.                 d.setVisible(true);
  370.             } catch (SQLException ex) {
  371.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  372.             }
  373.         } else if (status == 3) {
  374.             System.out.println("1");
  375.  
  376.             try {
  377.                 Object b = tabela.getValueAt(tabela.getSelectedRow(), 0);
  378.                 System.out.println("SELECT id_mecz,d1.nazwa,d2.nazwa,termin FROM MECZE "
  379.                         + " join druzyny d1 on d1.id_druzyny=id_goscie join druzyny d2 on d2.id_druzyny=id_gospodarze "
  380.                         + "WHERE ID_MECZ="
  381.                         + Integer.parseInt(b.toString()));
  382.                 rs = PolaczZBaza.s.executeQuery("SELECT id_mecz,d1.nazwa,d2.nazwa,termin FROM MECZE "
  383.                         + " join druzyny d1 on d1.id_druzyny=id_goscie join druzyny d2 on d2.id_druzyny=id_gospodarze "
  384.                         + "WHERE ID_MECZ="
  385.                         + Integer.parseInt(b.toString()));
  386.                 rs.next();
  387.                 Mecze d = new Mecze();
  388.                 d.przyciskZapisz.setEnabled(true);
  389.                 d.przyciskDodaj.setEnabled(false);
  390.                 d.poleGospodarze.setSelectedItem(rs.getObject(1).toString());
  391.                 d.poleGoscie.setSelectedItem(rs.getObject(2).toString());
  392.                 d.poleTermin.setText(rs.getObject(3).toString());
  393.                 d.setVisible(true);
  394.             } catch (SQLException ex) {
  395.                 Logger.getLogger(LigaKoszykowki.class.getName()).log(Level.SEVERE, null, ex);
  396.             }
  397.         }
  398.     }                                              
  399.  
  400.     private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  401.         status = -1;
  402.         ustawTabele("select nazwa,liczba_punktow(id_druzyny) as punkty from druzyny order by punkty desc");
  403.  
  404.     }                                        
  405.  
  406.     private int dajIdDruzyna(String s) {
  407.         try {
  408.             ResultSet r = PolaczZBaza.s.executeQuery("Select id_druzyny from druzyny where nazwa='"
  409.                     + s + "'");
  410.             r.next();
  411.             return Integer.parseInt(r.getObject(1).toString());
  412.         } catch (SQLException ex) {
  413.             Logger.getLogger(Mecze.class.getName()).log(Level.SEVERE, null, ex);
  414.         }
  415.         return -1;
  416.     }
  417.  
  418.     private void ustawTabele(String zapytanie) {
  419.         try {
  420.             ResultSet rs = PolaczZBaza.s.executeQuery(zapytanie);
  421.             java.sql.ResultSetMetaData rsmd = rs.getMetaData();
  422.             int colNo = rsmd.getColumnCount();
  423.             String[] columns = new String[colNo];
  424.             for (int i = 0; i < colNo; i++) {
  425.                 columns[i] = rsmd.getColumnName(i + 1);
  426.             }
  427.             DefaultTableModel aModel = new DefaultTableModel();
  428.             aModel.setColumnIdentifiers(columns);
  429.  
  430.             while (rs.next()) {
  431.                 Object[] objects = new Object[colNo];
  432.                 for (int i = 0; i < colNo; i++) {
  433.                     objects[i] = rs.getObject(i + 1);
  434.                 }
  435.                 aModel.addRow(objects);
  436.             }
  437.             tabela.setModel(aModel);
  438.         } catch (SQLException ex) {
  439.             System.out.println("Blad");
  440.         }
  441.     }
  442.  
  443.     private void ustawDruzyny() {
  444.         ustawTabele("select * from druzyny");
  445.         status = 1;
  446.     }
  447.  
  448.     private void ustawKoszykarze() {
  449.         ustawTabele("select id_koszykarza,nazwa,imie,nazwisko,pozycja from koszykarze  "
  450.                 + "natural join druzyny order by id_koszykarza");
  451.         status = 2;
  452.     }
  453.  
  454.     private void ustawMecze() {
  455.         ustawTabele("SELECT id_mecz,d1.nazwa as goscie,d2.nazwa as gospodarze,termin FROM MECZE "
  456.                 + " join druzyny d1 on d1.id_druzyny=id_goscie join druzyny d2 on d2.id_druzyny=id_gospodarze ");
  457.         status = 3;
  458.     }
  459.  
  460.     private void ustawStatystykiKoszykarzy() {
  461.         ustawTabele("select * from statystykikoszykarzy");
  462.         status = 4;
  463.     }
  464.  
  465.     private void ustawStatystykiMeczu() {
  466.         ustawTabele("select id_mecz,d1.nazwa||' '||d2.nazwa||' '||termin as mecz,gosciewynik,gospodarzewynik from statystykimeczu natural join mecze join druzyny d1 on d1.id_druzyny=id_goscie join druzyny d2 on d2.id_druzyny=id_gospodarze ");
  467.  
  468.         status = 5;
  469.     }
  470.  
  471.     /**
  472.      * @param args the command line arguments
  473.      */
  474.     public static void main(String args[]) {
  475.         /* Set the Nimbus look and feel */
  476.         //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  477.         /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  478.          * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  479.          */
  480.         try {
  481.             for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  482.                 if ("Nimbus".equals(info.getName())) {
  483.                     javax.swing.UIManager.setLookAndFeel(info.getClassName());
  484.                     break;
  485.                 }
  486.             }
  487.         } catch (ClassNotFoundException ex) {
  488.             java.util.logging.Logger.getLogger(LigaKoszykowki.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  489.         } catch (InstantiationException ex) {
  490.             java.util.logging.Logger.getLogger(LigaKoszykowki.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  491.         } catch (IllegalAccessException ex) {
  492.             java.util.logging.Logger.getLogger(LigaKoszykowki.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  493.         } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  494.             java.util.logging.Logger.getLogger(LigaKoszykowki.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  495.         }
  496.         //</editor-fold>
  497.  
  498.         /* Create and display the form */
  499.         java.awt.EventQueue.invokeLater(new Runnable() {
  500.             public void run() {
  501.                 new LigaKoszykowki().setVisible(true);
  502.             }
  503.         });
  504.     }
  505.  
  506.     // Variables declaration - do not modify                    
  507.     private javax.swing.JButton jButton1;
  508.     private javax.swing.JButton jButton2;
  509.     private javax.swing.JButton jButton3;
  510.     private javax.swing.JButton jButton4;
  511.     private javax.swing.JButton jButton5;
  512.     private javax.swing.JButton jButton7;
  513.     private javax.swing.JButton jButton9;
  514.     private javax.swing.JPanel jPanel1;
  515.     private javax.swing.JScrollPane jScrollPane1;
  516.     private javax.swing.JButton przyciskDodaj;
  517.     private javax.swing.JButton przyciskEdytuj;
  518.     private javax.swing.JTable tabela;
  519.     // End of variables declaration                  
  520. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement