[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

  • From: Ion Iovu < >
  • To:
  • Subject: [nbusers] Re: jComboBox conecting DB Tables JavaDB Java
  • Date: Mon, 26 Nov 2012 05:14:26 +0200

what's the error?

On Nov 26, 2012, at 5:10 AM, safiro21 wrote:

> I have a DB with 4 tables I manage the tables from a gui a build in netbeans
> gui builder, I am able to connect to a single table add, remove, delete and
> update in the table. I try to add a jcombobox so the can select the table
> the want to see. example:
> 
> private void cMainActionPerformed(java.awt.event.ActionEvent evt) {
> if (I don't know what to put here. I try "cMain == kitchen") {
> stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
> ResultSet.CONCUR_UPDATABLE);
>            String sql = "SELECT * FROM kitchen";
>            rs = stmt.executeQuery(sql);
> } else if ("cMain == bathroom") { stmt =
> con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
> ResultSet.CONCUR_UPDATABLE);
>            String sql = "SELECT * FROM bathroom";
>            rs = stmt.executeQuery(sql);}   Etc....    }
> 
> But is not working netbeans giveme a error. I need some help. thanks   
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://netbeans-org.1045718.n5.nabble.com/jComboBox-conecting-DB-Tables-JavaDB-Java-tp5717390.html
> Sent from the Netbeans IDE Users mailing list archive at Nabble.com.



[nbusers] jComboBox conecting DB Tables JavaDB Java

safiro21 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

Ion Iovu 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

cuatrocuadrado 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

Ion Iovu 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

cuatrocuadrado 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

safiro21 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

trhouse 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

trhouse 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

Ion Iovu 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

safiro21 11/26/2012

[nbusers] Re: jComboBox conecting DB Tables JavaDB Java

safiro21 11/26/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close