标题:怎么能获取组件point位置
取消只看楼主
Satyr
Rank: 1
等 级:新手上路
帖 子:83
专家分:0
注 册:2006-4-7
 问题点数:0 回复次数:1 
怎么能获取组件point位置
x=(int)this.getLocation().getX();
在内部类里面不容让用,那怎么获取啊
搜索更多相关主题的帖子: point 组件 位置 获取 
2007-04-25 12:44
Satyr
Rank: 1
等 级:新手上路
帖 子:83
专家分:0
注 册:2006-4-7
得分:0 

为什么这个可以
this.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
MyFrame.this.setVisible(false);
}
});
这个不可以呢
this.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
MyFrame.setVisible(false);
}
});
THIS有什么用啊
谢谢拉


C++的博大精深让我叹服
2007-04-25 21:43



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-134815-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.428119 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved