-
时钟 走动
一个应用线程实现指针运动的指针时钟程序。程序应用绘制函数时钟面板,根据线程休眠时间间隔,每隔1000ms进行一次重绘。程序通过获取系统时间函数并加以计算个指针位置,再利用绘制函数将其绘制在面板上,通过设置指针长度及颜色,实现时针、分针、秒针的区分。次外,通过获取窗体大小,设置圆面圆心坐标及半径,可依据窗口大小动态划分圆面大小,并动态绘制刻度点位置。(A pointer clock program that uses threads to implement pointer movement. The program draws the function clock panel and redraws it every 1000ms according to the interval of thread dormancy. The program obtains the system time function and calculates the position of a pointer, then draws it on the panel by drawing function. By setting the length and color of the pointer, it achieves the distinction of clockwise, minute and secondhand. Secondly, by acquiring the size of the form and setting the coordinates and radius of the circle center, the circle size can be dynamically divided according to the size of the window, and the location of the scale points can be dynamically plotted.)
- 2020-06-19 19:00:01下载
- 积分:1
-
AddressBook
课程设计-- 通讯录。。用NetBeans编写(Curriculum design- Address Book. . Prepared using NetBeans)
- 2008-05-27 02:46:28下载
- 积分:1
-
8team_report
韩国仁荷大学电子系 java学期作业的报告部分(仅供参考)(Inha University Department of Electronics, java term operating section of the report (for reference only))
- 2012-07-26 21:55:23下载
- 积分:1
-
Exe4_3
3.已知车辆(Vehicle)包括机动车(MotoVehicle)和非机动车(NonMotorVehicle)2种。小汽车(Car)、公交车(Bus)等属于机动车,自行车(Bicycle)等属于非机动车。随着能源技术的发展,出现了电动自行车(ElectricBicycle)、电动小汽车(ElectricCar)、天然气公交车(NaturalGasBus)等新型车辆。车辆的共同特征是都能够运行(run),并且有唯一的5位车牌号(LicenseNumber)。机动车的共同特征是采用燃油发动机(FuelEngine),且能够驾驶(drive)。自行车的共同特征是能够骑行(ride)。电动车辆的共同特征是由电池(Battery)驱动。天然气车辆的共同特征是采用天然气(NaturalGas)作为动力。
要求:
(1)设计一个类体系描述上述车辆,写出它们的属性和方法。
(2)一家公司(Company)拥有10辆普通小汽车、5辆公交车、2辆电动小汽车和1辆天然气公交车,要求写一个方法listVehicles()显示所有车辆的信息(车牌号以及采用的动力)。
程序文件命名为Exe4_3.java。(3. Known vehicle (Vehicle) including motor vehicle (MotoVehicle) and non-motorized (NonMotorVehicle) 2 species. Cars (Car), bus (Bus), etc. to motor vehicles, bicycles (Bicycle), etc. are non-motor vehicles. With the development of energy technologies, the emergence of electric bicycles (ElectricBicycle), electric cars (ElectricCar), natural gas buses (NaturalGasBus) and other new vehicles. A common feature of the vehicle is able to run (run), and there are only five license plate number (LicenseNumber). Common feature is the use of a motor vehicle fuel engine (FuelEngine), and is capable of driving (drive). Common feature is the ability to ride a bike (ride). Common characteristics of the electric vehicle is driven by a battery (Battery). A common feature is the use of natural gas vehicles (NaturalGas) as the driving force.
Claim:
(1) describe the design of a class system of the vehicle, write their properties and methods.
(2) a company (Company) owns 10 ordinary cars, five buses, )
- 2015-06-14 18:22:51下载
- 积分:1
-
Java面试宝典2018版Beta5.0
java , mainshi baodian 2018 Beta5.0
- 2020-06-20 01:00:02下载
- 积分:1
-
ProducerConsumerProblem
说明: 关于操作系统生产者与消费者的源码,没有解压密码.(operating system on producers and consumers of the source, without extracting passwords.)
- 2005-11-06 16:05:24下载
- 积分:1
-
petri
本程序实现了简单的基于Java程序的perti网运行过程仿真。(Operation simulation of Petri Network)
- 2018-05-12 15:34:28下载
- 积分:1
-
javamaterial
收集的Java入门资料,内容丰富,希望对大家有用。(Collection of introductory information on Java, rich in content and hope for all of us.)
- 2009-10-31 14:49:05下载
- 积分:1
-
VView
vrml与java结合实例,大家可以参照一下,可能对你有用阿(vrml combine with java example, we can refer to what may be useful to you A)
- 2006-10-09 15:29:54下载
- 积分:1
-
交通一条道路
说明: 设计一个交通信号灯类: (1)变量:位置、颜色(红、黄、绿)、显示时间(秒)。 (2)方法:切换信号灯。 创建并启动两个线程(东西向、南北向)同时运行。 3.实验要求 (1)设计线程。 (2)设计路口信号灯示意图界面。 (3)进一步将每个方向的信号灯分成3种车道灯:左转、直行和右转。 (4)根据车流量进行时间的模糊控制。(Design a traffic light class: (1) variables: location, color (red, yellow, green), display time (seconds). (2) Method: switch the signal lamp. Create and start two threads (east-west, north-south) running at the same time. 3. Experiment requirements (1) design thread. (2) Design schematic interface of intersection signal light. (3) Further, the signal lights in each direction are divided into three kinds of lane lights: left turn, straight ahead and right turn. (4) Fuzzy control of time according to traffic flow.)
- 2020-05-27 09:21:40下载
- 积分:1