-
Java自定义鼠标光标
super("自定义光标"); //调用父类构造函数
int[] cursor={Cursor.DEFAULT_CURSOR,Cursor.HAND_CURSOR,Cursor.MOVE_CURSOR,Cursor.N_RESIZE_CURSOR,Cursor.W_RESIZE_CURSOR,Cursor.WAIT_CURSOR,Cursor.TEXT_CURSOR}; //预定义光标数组
Container container=getContentPane(); //得到容器
container.setLayout(new FlowLayout()); //设置容器布局管理器
for (int i=0;i JTextArea jta=new JTextArea(3,6); //实例化一个文本框对象
jta.setCursor(Cursor.getPredefinedCursor(cursor[i])); //设置文本框的光标
container.add(jta); //增加组件到容器上
}
Toolkit toolkit=Toolkit.getDefaultToolkit(); //得到默认的ToolKit对象
Image image=toolkit.getImage("cursor.gif"); //得到图像
Cursor customCursor=toolkit.createCustomCursor(image,new Point(6,6),"MyCursor"); //实例化自定义光标对象
JTextArea jta=new JTextArea(3,6); //实例化文本框
jta.setCursor(customCursor); //设置文本框光标
container.add(jta); //增加组件
setSize(300,160); //设置窗口大小
setVisible(true); //窗口可视
- 2022-03-06 15:35:47下载
- 积分:1
-
mc39i硬件手册,您上载的源码为何会被站长不采用或帐号被删除....
mc39i硬件手册,您上载的源码为何会被站长不采用或帐号被删除.-mc39i hardware manual, you upload the source code for that station will be not be adopted or account be deleted.
- 2022-04-13 15:23:54下载
- 积分:1
-
NetCDF批量转Tiff的IDL程序
将nc文件批量转为tif格式的小程序,在idl中运行(batch tool used for netcdf to tif)
- 2021-04-28 20:38:43下载
- 积分:1
-
9CCMS_V175(整合四大插件官方版)
视频自动采集系统,官方提供的下载源码,这里借花了(Video automatic acquisition system, official download source, borrowed here)
- 2020-06-18 04:40:02下载
- 积分:1
-
ECG QRS wave detection, the use of wavelet methods and other methods
心电信号QRS波的检测,利用小波方法和其他方法-ECG QRS wave detection, the use of wavelet methods and other methods
- 2022-01-25 15:48:57下载
- 积分:1
-
Pipe类 Pipe类 Pipe类
Pipe类 Pipe类 Pipe类
- 2022-01-25 19:22:54下载
- 积分:1
-
著名的安装制作软件InnoSetup的源码及示例源码
著名的安装制作软件InnoSetup的源码及示例源码-The installation of a well-known software s source code and sample InnoSetup source
- 2022-03-15 12:15:03下载
- 积分:1
-
007174133XArduino
Another book of Atmel Arduino
- 2011-06-14 06:40:21下载
- 积分:1
-
MATLAB FPGA digital signal processing DSP similar to the C language acronym SG,...
MATLAB的FPGA数字信号处理程序
类似于DSP的C语言
简称SG,大家指教!! -MATLAB FPGA digital signal processing DSP similar to the C language acronym SG, we know! !
- 2022-02-04 08:33:17下载
- 积分:1
-
lxywmtd3
JTable的事件大致均针对表格内容的异操作处理,包括字段内容改变()
- 2017-09-19 18:40:18下载
- 积分:1