基本信息
源码名称:Java模拟文本编辑器
源码大小:9.73KB
文件格式:.zip
开发语言:Java
更新时间:2021-07-29
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 1 元 
   源码介绍
基于JavaSwing的模拟写字板,支持调整文字样式,对文本加密,快捷键的映射


this.setIconImage(image);//图标 setTitle(title);//标题 this.setResizable(true);//大小可调 this.setBackground(Color.cyan); this.setBounds(new Rectangle(150,100,800,550));//窗口大小 // 程序启动、关闭监听 this.addWindowListener(new WindowAdapter(){ @Override  public void windowClosing(WindowEvent e){
      System.out.println("程序关闭");  System.exit(0);  } @Override  public void windowOpened(WindowEvent e){
           System.out.println("程序打开");  }
}); clip=getToolkit().getSystemClipboard();//获得剪贴版 this.initcopy();//初始化为空 textarea=new JTextArea(); textarea.setLineWrap(false); textarea.setFont(font); textarea.setForeground(Color.black); textarea.setBackground(Color.white); textscroll=new JScrollPane(textarea); this.add(textscroll);