首先把版面设成XYLayout,然后就用this.getContentPane().add(jButton1, new XYConstraints(348, 57, 114, 30));把jButton精确定位!
解决方案 »
- JAVA中的ArrayList存储方式
- hql语句书写 方法"from Comment c where c.assetId='"+assetId+"' and c.status='"+status+"
- 问个线程傻问题,在sleep的时候,我要想做个计数
- 提出一个小问题供讨论!
- 一道 数学编程题。
- 有谁知道Visual Cafe的资料?
- 关于如何取得数据库某一张表格的字段数以及................
- 菜鸟问题,请求解答!!20分!!!
- 有没有大虾用JAVAMAIL在邮件服务器上注册过新用户,请指明方法,谢谢
- 那位高手知道在JAVA中如何讀取ODBC數據源中的列表?Thanks!
- 一个有关传值\传址的问题.有奇怪.
- 高分,请求关于系统退出的问题
import java.awt.*;
import java.awt.event.*;
public class ButtonC extends JApplet {
public void init(){
JButton b=new JButton("BB");
setSize(200,200);
getContentPane().setLayout(null);
b.setBounds(10,20,20,40); //<<<具体的4个参数你在这里调
this.getContentPane().add(b);
}
}