import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
/*
* wwssy2d.java
*
* Created on __DATE__, __TIME__
*/
/**
*
* @author __USER__
*/
public class wwssy2d extends javax.swing.JFrame {
/** Creates new form wwssy2d */
public wwssy2d() {
initComponents();
}
/** 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.
*/
//GEN-BEGIN:initComponents
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
jButton1 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jButton1.setText("\u67e5\u8be2");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel1.setText("\u8f93\u5165\u7535\u5f71\u540d\u79f0");
jLabel2.setText("\u5220\u9664\u5f71\u7247\u4fe1\u606f");
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object[][] { { null, null, null, null },
{ null, null, null, null }, { null, null, null, null },{ null, null, null, null }, { null, null, null, null },{ null, null, null, null }, { null, null, null, null },
{ null, null, null, null } }, new String[] { "影片编号",
"影片名称", "影厅编号", "放映时间" }));
jScrollPane1.setViewportView(jTable1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(
getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(layout.createParallelGroup(
javax.swing.GroupLayout.Alignment.LEADING).addGroup(
javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup().addContainerGap(31,
Short.MAX_VALUE).addComponent(jLabel1).addGap(27, 27,
27).addComponent(jTextField1,
javax.swing.GroupLayout.PREFERRED_SIZE, 130,
javax.swing.GroupLayout.PREFERRED_SIZE).addGap(45, 45,
45).addComponent(jButton1).addGap(38, 38, 38))
.addGroup(
layout.createSequentialGroup().addGap(156, 156, 156)
.addComponent(jLabel2).addContainerGap(172,
Short.MAX_VALUE)).addGroup(
layout.createSequentialGroup().addContainerGap()
.addComponent(jScrollPane1,
javax.swing.GroupLayout.PREFERRED_SIZE,
375,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(13, Short.MAX_VALUE)));
详细解决方案
~连接不上,显示结果是成功然后失败,rs = stmt.executeQuery(sql);小弟我觉得是这句的有关问题,求指导
热度:236 发布时间:2016-04-23 01:23:57.0
相关解决方案
- stmt.executeQuery();空指针异常
- eclipse debug按F6一行一行走,为啥走到rs=sql.executequery(t)之后直接跳到末尾
- Statement stmt=null的作用是什么?该如何解决
- 小弟我都哭了,帮帮小弟我吧resultSet = statement.executeQuery(test);有关问题
- 啊 ResultSet rs=SqlBean.executeQuery(sql1);赋值不上
- Can not issue data manipulation statements with executeQuery().JAVA WEB
- 们帮帮忙~小弟我的boolean b=stmt.execute() b如何返回false,小弟我这段程序那里错了
- 关于ResultSet rs = stmt.executeQuery(sql);的有关问题
- 为什么出这个异常提示:stmt cannot be resolved
- Statement stmt = Conn.createStatement(1004,1007);解决方案
- org.hibernate.Query.executeQuery()执行update语句时怎么插入null
- stmt.executeUpdate(sql);//这句为啥不执行
- 为什么代码执行到 stmt.executeUpdate() 就诡异的停止了?
- rs = stmt.executeQuery(sql); java.lang.NullPointerException,该怎么解决
- ~连接不上,显示结果是成功然后失败,rs = stmt.executeQuery(sql);小弟我觉得是这句的有关问题,求指导
- java executeQuery()查询的有关问题
- dao.executeQuery() 执行第一次没有关问题 第2次就报数据类型转换错误
- tomcat 连接池的 Stmt 是不是不用关闭啊还是关了rs Stmt 就自动关闭了啊解决方法
- DBconn.executeQuery:[Microsoft][SQLServer 2000 Driver for JDBC]Error establishin解决办法
- Unsupported method: ResultSet.first有关问题,小弟我已设Statement stmt
- java.sql.SQLException: Can not issue data manipulation statements with executeQuery()
- Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
- java.sql.SQLException: Can not issue data manipulation statements with executeQuery().报错已解决
- can not issue data manipulation statements with executeQuery()
- execute()\executeUpdate()\executeQuery()方法返回值的探究
- executeQuery executeUpdate的区别
- tomcat显示aq.executeQuery:Access denied for user 'root'@'localhost' (using password: YES)的解决办法