Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java GUI 设计  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 [求助]这是怎么了?(我还没编写,怎么功能就实现了!)
guliusuo





发贴: 28
积分: 0
于 2006-10-30 11:58 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
import java.awt.*;
import java.awt.event.*;
public class W9 extends Frame{
TextArea ta=new TextArea();
W9(){
super("弹出菜单");
setSize(400,200);
addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
add(ta);
setVisible(true);
}
public static void main(String args[]){
new W9();
}
}

这个程序我还没创建弹出菜单,运行程序时,在文本区里单出右键,怎么会有弹出菜单出现?
我的JDK版本是j2sdk1.4.2_07,是不是版本的问题?


guliusuo edited on 2006-10-30 15:18

作者 Re:[求助]这是怎么了?(我还没做,怎么就有了!) [Re:guliusuo]
guliusuo





发贴: 28
积分: 0
于 2006-10-30 12:00 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
请求高手,帮忙!!!


作者 Re:[求助]这是怎么了?(我还没编写,怎么功能就实现了!) [Re:guliusuo]
guliusuo





发贴: 28
积分: 0
于 2006-11-03 15:11 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
怎么没人回贴啊!!!!



作者 Re:[求助]这是怎么了?(我还没编写,怎么功能就实现了!) [Re:guliusuo]
cxp108





发贴: 363
积分: 12
于 2006-11-03 15:25 user profilesend a private message to usersend email to cxp108search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的测试没有出现弹出菜单

你运行错类了吧?

我测试环境:

JDK 1.5.0 + Netbeans 5.5 beta

Ubuntu Linux 6.06LTS



作者 Re:[求助]这是怎么了?(我还没编写,怎么功能就实现了!) [Re:guliusuo]
guliusuo





发贴: 28
积分: 0
于 2006-11-04 17:34 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我检查过了,没有运行错类!
我的测试环境:
j2sdk1.4.2_07 + 记事本
Windows Xp
会不会跟Windows操作系统有关系?



作者 Re:[求助]这是怎么了?(我还没编写,怎么功能就实现了!) [Re:guliusuo]
cxp108





发贴: 363
积分: 12
于 2006-11-05 09:34 user profilesend a private message to usersend email to cxp108search all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
有可能

因为你使用的TextArea是Awt组件
Awt是有部分是基于操作系统的原生组件,不同操作系统可能有完全不同的结果




flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923