-
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
-
kalman滤波在视频图像目标跟踪
说明: Kalman滤波在视频图像目标跟踪中的应用(Application of Kalman filter in video image target tracking)
- 2021-01-05 09:56:44下载
- 积分:1
-
Getting started with OneDrive
在手机上解决大家的决定将,吊带我飞耨只看到路口东方可欧0酷狗viefkefiwfw(zhanvbapvk skvdslv;sdv-wiek opj osjdovjs9d0jvsva)
- 2017-11-01 01:43:10下载
- 积分:1
-
[emuch.net]matlab
本代码中含有100个实用实例,可以供各位朋友参考。(This code contains 100 practical examples for reference to a friend.)
- 2012-05-21 22:56:39下载
- 积分:1
-
mouseMenu
A jQuery mouse right-click menu special effect code, the JS code is suitable for application development background use.
- 2019-05-06 21:41:11下载
- 积分:1
-
预测模型控制
说明: 模型预测控制的永磁同步电机Simulink仿真模型,编程与分析。(Model predictive control of permanent magnet synchronous motor Simulink simulation model, programming and analysis.)
- 2021-04-18 17:28:51下载
- 积分:1
-
java games prepared by the 1000 block of Terry Avenue prepared by the 1000 block...
java编写的连连看游戏 java编写的连连看游戏 -java games prepared by the 1000 block of Terry Avenue prepared by the 1000 block of Terry Avenue java games prepared by the 1000 block of Terry Avenue java preparation of the 1000 block of Terry Avenue java games prepared by the 1000 block of Terry Avenue games java games prepared by the 1000 block of Terry Avenue
- 2022-07-24 04:56:20下载
- 积分:1
-
kinetics
说明: 多元统计分析中用来分析数据的一种方法,它是用一种较少数量的特征对样本进行描述以达到降低特征空间维数的方法(A method used to analyze data in multivariate statistical analysis. It uses a small number of features to describe samples in order to reduce the dimension of feature space.)
- 2020-06-17 08:00:02下载
- 积分:1
-
dis_PID
说明: PID控制的S函数程序,可以实现SIMULINK中的PIDnn控制(PID control / S-function)
- 2018-12-27 12:02:26下载
- 积分:1
-
daonajuzhen
此程序为潮流计算中的导纳矩阵程序,是潮流计算中的一部分。(This program is the trend of the admittance matrix of the calculation procedure is part of the trend calculation.)
- 2009-09-15 20:37:50下载
- 积分:1