Теми рефератів
> Реферати > Курсові роботи > Звіти з практики > Курсові проекти > Питання та відповіді > Ессе > Доклади > Учбові матеріали > Контрольні роботи > Методички > Лекції > Твори > Підручники > Статті Контакти
Реферати, твори, дипломи, практика » Новые рефераты » Розробка системи обліку прокату автомобілів

Реферат Розробка системи обліку прокату автомобілів





IManager. LookAndFeelInfo info: javax.swing.UIManager.getInstalledLookAndFeels ()) {(«Nimbus». equals (info.getName ())) {. swing.UIManager . setLookAndFeel (info.getClassName ());;

}

}

} catch (ClassNotFoundException ex) {. util.logging. Logger.getLogger (Table1Del.class.getName ()). Log (java.util.logging. Level.SEVERE, null, ex);

} catch (InstantiationException ex) {. util.logging. Logger.getLogger (Table1Del.class.getName ()). Log (java.util.logging. Level.SEVERE, null, ex);

} catch (IllegalAccessException ex) {. util.logging. Logger.getLogger (Table1Del.class.getName ()). Log (java.util.logging. Level.SEVERE, null, ex);

} catch (javax.swing. UnsupportedLookAndFeelException ex) {. util.logging. Logger.getLogger (Table1Del.class.getName ()). Log (java.util.logging. Level.SEVERE, null, ex);

}

/ /


/ * Create and display the form * /. awt. EventQueue.invokeLater (new Runnable () {void run () {Table1Del (). SetVisible (true);

}

});

}


/ / Variables declaration - do not modifyjavax.swing.JButton jButton1; javax.swing.JButton jButton2; javax.swing.JComboBox jComboBox1; javax.swing.JLabel jLabel1;

/ / End of variables declaration

}



Додаток Д


Вихідний код форми «Зміна марки автомобіля»


import java.sql. *; java.util. *; javax.swing. *; javax.swing.table. *;

/ **

*

* @ author User

* / class Table1Izm extends javax.swing.JFrame {


/ **

* Creates new form Table1Izm

* / Table1Izm () {(); ();

} void Search ()

{

{count=0;. forName («sun.jdbc.odbc. JdbcOdbcDriver»); connInfo=new Properties ();. put («user», «»);. put («password »,« »);. put (« charSet »,« Cp1251 »); conn=DriverManager.getConnection (« jdbc: odbc: mydb », connInfo); s=conn.createStatement (); res=s.executeQuery (« SELECT * FROM Маркі_авто »); (res.next ())

{+ +;

} res1=s.executeQuery («SELECT * FROM Маркі_авто »); (int i=0; i

{. next ();. addItem (res1.getString (2));. setSelectedIndex (i);

}. close ();. close ();

} (Exception ex)

{. out.println (ex);. showMessageDialog (null, «Не вдалося підключитися до бази даних»);

}

}

/ **

* This method is called from within the constructor to initialize the form.

* WARNING: Do NOT modify this code. The content of this method is always

* regenerated by the Form Editor.

* /

@ SuppressWarnings («unchecked»)

/ /


Назад | сторінка 25 з 34 | Наступна сторінка





Схожі реферати:

  • Реферат на тему: Java: Засоби побудови звітів для Java-додатків
  • Реферат на тему: Розробка програми на Java
  • Реферат на тему: The Marx's class
  • Реферат на тему: Розробка програми на мові JAVA
  • Реферат на тему: Розробка програмної системи для Вивчення іноземних слів з використанн мови ...