java布局中,比如BorderLayout布局中的按钮大小好像都是根据按钮上的文字长度自动适应的是吧?我想手动设置按钮的大小应该设置?
解决方案 »
- 用filter增强request和respone。。。一般有哪些常用应用啊
- 向远程消息队列发消息
- spring+xfire项目如何配置php发布的webservice服务
- maven2执行mvn deploy时所出现的很缠人的错误。
- javascript中怎样调用import进jsp文件中java类中的函数?
- <html:img 动态改变图片目录的问题
- java如何得到sql server存储过程的返回值[最后一句查询结果和output的参数都要返回]
- 如何把自己网站指定到tomcat默认网站
- 急!在struts分页设计中,如何保留随机的多个查询参数?
- 如何创建后台服务
- Action获取不到值的问题!
- spring的注入问题
也可以设置它的size , 应该有这个属性吧, 你试试 我一般是假空格就OK了
setBounds(int x, int y, int width, int height)
Parameters:
x the new x coordinate for the receiver
y the new y coordinate for the receiver
width the new width for the receiver
height the new height for the receiver