本程序执行后,创建一个能够加载文字的面板,文字的内容是本地主机的IP地址的动态显示。跑马灯文字的大小和跑马灯文字显示的速度都可以在GatutTextCrawler.html文件里通过参数进行设置。 编程思路:首先,本练习因为要制作侦测IP的跑马灯的实例,所以首先要生成程序界面:在函数public void init()中,首先通过语句s = getParameter("fontSize")和fontSize = s != null ? Integer.valueOf(s).intValue() : 12设置文字字体大小,然后进行字体设置和显示速度设置,最后通过语句msgText = getParameter("preText")得到GatutTextCrawler.html文件中的字符串值。然后,得到主机IP地址,首先通过函数adds = InetAddress.getLocalHost().toString()得到主机的IP地址,最后在更新屏幕函数public void update(Graphics g)中通过实现跑马灯效果。
标签: 程序
上传时间: 2016-06-06
上传用户:miaochun888
The Rails Cookbook is is packed with the solutions you need to be a proficient developer with Rails, the leading framework for building the new generation of Web 2.0 applications. Recipes range from the basics, like installing Rails and setting up your development environment, to the latest techniques, such as developing RESTful web services. Topics include: . Modeling data with the ActiveRecord library . Setting up views with ActionView and RHTML templates . Building your application s logic into ActionController . Testing and debugging your Rails application . Building responsive web applications using JavaScript and Ajax . Ensuring that your application is security and performs well . Deploying your application with Mongrel and Apache . Using Capistrano to automate deployment . Using the many Rails plugins Working with graphics
标签: Rails with proficient developer
上传时间: 2013-12-23
上传用户:pkkkkp
STK的全称是Satellite Tool Kit(卫星工具箱),STK/Pro 6.1于2005年4月初最新出品,解压后为583M,是由Analytical Graphics公司开发的一款在航天工业领域中处于绝对领先地位的商品化分析软件。它支持航天任务周期的全过程,包括概念、需求、设计、制造、测试、发射、运行和应用等。STK是先进的商用现货(COTS)分析和可视化工具,它可以支援航天、防御和情报任务。利用它可以快速方便地分析复杂任务,获得易于理解的图表和文本形式的分析结果,以确定最佳解决方案。
上传时间: 2016-08-27
上传用户:奇奇奔奔
Java小游戏源代码,本代码是制作烟花,执行本代码后,用鼠标点击浏览器中的面板,将出现五彩缤纷的烟花效果。知识点有:鼠标事件的监听,Graphics类和Thread类的应用。
上传时间: 2013-12-02
上传用户:gxrui1991
Java小游戏源代码,制作拼图游戏,执行本实例后,用鼠标拖动选中的小图片进行拼接,可以拼成一幅完整的图片。本实例的知识点有:鼠标事件的监听,Graphics类和Image类的应用。
上传时间: 2013-12-28
上传用户:x4587
ardware sensors monitor 4.4.2.2 (June 2008) (Shareware, trial period is two weeks) The most universal hardware monitoring program for Windows 9X/ME/NT/2000/XP/2003/VISTA x86/x64 editions This program monitors and displays certain parameters (temperatures, voltages, fans RPM) taken from h/w sensor chips, installed on smart motherboards and/or graphics cards. Customizable alarms can be displayed. Professional license includes thermo control features (so-called "Software cooling"), nVidia/ATi graphics cards and HDD S.M.A.R.T. monitoring.
标签: Shareware ardware sensors monitor
上传时间: 2013-12-17
上传用户:894898248
本文介绍了一个使用 VHDL 描述计数器的设计、综合、仿真的全过程,作为我这一段 时间自学 FPGA/CPLD 的总结,如果有什么不正确的地方,敬请各位不幸看到这篇文章的 大侠们指正,在此表示感谢。当然,这是一个非常简单的时序逻辑电路实例,主要是详细 描述了一些软件的使用方法。文章中涉及的软件有Synplicity 公司出品的Synplify Pro 7.7.1; Altera 公司出品的 Quartus II 4.2;Mentor Graphics 公司出品的 ModelSim SE 6.0。
上传时间: 2016-10-04
上传用户:Yukiseop
Tricks of the Windows Game Programmin Gurus, 2E takes the reader through Win32 programming, covering all the major components of DirectX including DirectDraw, DirectSound, DirectInput (including Force Feedback), and DirectMusic. Andre teaches the reader 2D graphics and rasterization techniques. Finally, Andre provides the most intense coverage of game algorithms, multithreaded programming, artificial intelligence (including fuzzy logic, neural nets, and genetic algorithms), and physics modeling you have ever seen in a game book.
标签: programming Programmin the covering
上传时间: 2014-01-02
上传用户:wangchong
windml3.0.3,vxworks下的图形工具包,相信知道vxworks的人对此不陌生吧,enjoy!-windml3.0.3, VxWorks the graphics tool kit, I believe the people know this VxWorks no stranger to it, enjoy!
标签: windml
上传时间: 2016-10-21
上传用户:lvzhr
The MATLAB Compiler automatically converts MATLAB M-files to C and C++ code. The MATLAB Compiler includes the MATLAB C/C++ Math and Graphics Libraries, which let you automatically convert your MATLAB applications to C and C++ code for stand-alone applications.
标签: MATLAB Compiler automatically The
上传时间: 2014-01-09
上传用户:凌云御清风