Java GUI中的JFileChooser怎么设置选择框的宽度和高度
2016-07-13 · 百度知道合伙人官方认证企业
育知同创教育
1【专注:Python+人工智能|Java大数据|HTML5培训】 2【免费提供名师直播课堂、公开课及视频教程】 3【地址:北京市昌平区三旗百汇物美大卖场2层,微信公众号:yuzhitc】
向TA提问
关注
展开全部
JFileChooser j = new JFileChooser("F:\\Program Design\\JAVA program") ;
这里的参数用String就没有问题。
这里的参数用String就没有问题。
2017-10-25
展开全部
Methods inherited from class java.awt.Component
public void setSize(Dimension d)
Resizes this component so that it has width d.width
and height d.height.
This method changes layout-related information, and therefore,
invalidates the component hierarchy.
Parameters:
d - the dimension specifying the new size
of this component
public void setSize(int width, int height)
Resizes this component so that it has width width
and height height.
This method changes layout-related information, and therefore,
invalidates the component hierarchy.
Parameters:
width - the new width of this component in pixels
height - the new height of this component in pixels
public void setSize(Dimension d)
Resizes this component so that it has width d.width
and height d.height.
This method changes layout-related information, and therefore,
invalidates the component hierarchy.
Parameters:
d - the dimension specifying the new size
of this component
public void setSize(int width, int height)
Resizes this component so that it has width width
and height height.
This method changes layout-related information, and therefore,
invalidates the component hierarchy.
Parameters:
width - the new width of this component in pixels
height - the new height of this component in pixels
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询