回答第二个
用JDIALOG,设置它的模态为真 dialog.setModal(true)
用JDIALOG,设置它的模态为真 dialog.setModal(true)
解决方案 »
- 万年历记事本
- operator > cannot be applied to java.math.BigDecimal,int怎么解决
- demo中的例子,jfc\c\SwingSet2\src中SwingSet2.java中有一句很怪的语句
- ^^^^^^^^看看这个问题,,,,,
- 对象流的求助.
- 最近需要做一套联通的短信网关接口程序,不是很懂!希望大家给点意见!
- 请教,如何把一个java程序转换成jar文件?
- 关于JBuilder7的问题
- java程序如何在windows下编译(java超级菜鸟,望高手指点)
- 请指一条考高程之路!
- 为什么java会出现非法操作的错误
- 请问哪里有好的Java API参考手册下载?
2:应该打开一个模式对话框吧?
3:public interface CallableStatement
extends PreparedStatement
The interface used to execute SQL stored procedures. JDBC provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax has one form that includes a result parameter and one that does not. If used, the result parameter must be registered as an OUT parameter. The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1.
{?= call <procedure-name>[<arg1>,<arg2>, ...]}
{call <procedure-name>[<arg1>,<arg2>, ...]}
IN parameter values are set using the set methods inherited from PreparedStatement. The type of all OUT parameters must be registered prior to executing the stored procedure; their values are retrieved after execution via the get methods provided here. A CallableStatement can return one ResultSet or multiple ResultSet objects. Multiple ResultSet objects are handled using operations inherited from Statement. For maximum portability, a call's ResultSet objects and update counts should be processed prior to getting the values of output parameters. Methods that are new in the JDBC 2.0 API are ed "Since 1.2."
这里假设包是a.b.c,主类是Face
java -jar face.jar出错原因:
要这样运行程序,必须在face.jar的META-INF里的mldksl(我忘了文件名:()就一个文件的,加一句Main-class:a.b.c.Face。具体你可以看jdk的 demo有这样的jar 文件。
2。分给 netwebs(netwebs好了
3。用JAVA和SQL Server通信你要用JDBC,主要是java.sql.* and javax.sql.*
关于JDBC的基础知识你自己看书我要分^-^
查一下PreparedStatement类、Statement类的文档;
Connect con=DriverManager.getConnection(url,"uerID","pwd");
//你肯定明白参数的意思:)
Statement stmt=con.createStatement();
stmt.executeUpdate("update sql");
PreparedStatement pst=con.PreparedStatement("update table set m=? where x=?");
pst.setLont(1,101010101);//m
pst.setLong(2,10248302830);//x
//setXXX,setNULL(NULL专用),setObject;我没开发所以具体的问题也不是很清楚的,你还是查文档比较清楚些(sun下JDK文档啊)。:)我现在可是不敢安慰你的啦,要不然,那天又恨我了。:)逗你玩的。:)