




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
OpenSwing 安装方法启动NetBeans 7.0 第一步:新建项目类别:java项目:java应用程序下一步项目名称:myTest完成第二步:工具库新建库(输入一个库名例如:OpenSwing)确定点击:添加JAR /文件夹浏览到来源文件夹中build 选择全部jar文件添加JAR /文件夹确定工具组件面板Swing/swt组件面板新建类别(OpenSwing) 确定 从库添加.可用库:(选中前面建立的库OpenSwing) 下一步可用组件:选中要添加的(可多选) 下一步组件面板类别:(选中前面创建的OpenSwing)完成第三步:工具首选项其它GUI生成器布局生成样式:(标准java6代码)确定第四步:右击前面建立项目:myTest 属性库添加库可用库:OpenSwing添加库确定Ok!刚开始学习仍处摸索阶段,如有错误恳请指正!以下是官网google译文窗体底端Installation instructions安装说明 OpenSwing is composed of a client-side libraries and a serverside libraries. OpenSwing是由客户端库和一个服务器端库。 You can use some of these files or use all of them.您可以使用这些文件的部分或全部使用。 The client-side libraries are based on files commonos.jar and clientos.jar .客户端库是基于文件commonos.jar和clientos.jar。 The server side libraries are based on files commonos.jar and serveros.jar .服务器端的库是基于文件commonos.jar和serveros.jar。 The following files must be also available to use OpenSwing framework:下列文件必须也可以使用OpenSwing框架: - jcalendar.jar (an open source library (LGPL) for viewing a calendar, written by Kai Toedter) - jcalendar.jar(一个开源库启Toedter(LGPL协议)来查看写的日历) - poi-2.0-RC2-20040102.jar (an open source library used to generate Excel files) -景点- 2.0 - RC2测试版- 20040102.jar(一个开源库用于生成Excel文件) - itext-1.4.8.jar (an open source library used to generate PDF or RTF files using java 1.4 or above) - iText的- 1.4.8.jar(一个开源库用来生成PDF或RTF文件使用Java 1.4或以上) - itext-2.1.7.jar (an open source library used to generate PDF or RTF files using java 1.5 or above) - iText的- 2.1.7.jar(一个开源库用来生成PDF或RTF文件使用Java 1.5或以上) - itext-rtf-2.1.7.jar (an open source library used to generate PDF or RTF files using java 1.5 or above) - iText的- RTF格式- 2.1.7.jar(一个开源库用来生成PDF或RTF文件使用Java 1.5或以上) Moreover, these files can be useful to start a client-side application from Java Web Start:此外,这些文件可以是有用的开始从Java Web Start的客户端应用程序: - jnlp.jar (JNLP API provided by Sun) - jnlp.jar(JNLP的空气污染指数由Sun提供) - jnlp-servlet.jar (JNLP Servlet provided by Sun) -的jnlp -的servlet.jar(JNLP的Servlet的Sun公司提供的) The following file can be used to log server-side messages though Log4J:以下文件可用于记录虽然Log4J的服务器端消息: - log4j-1.2.7.jar -的log4j - 1.2.7.jar The following file can be used to manage a pool of database connections:下列文件可以被用来管理一个数据库连接池: - pooler.jar (based on Java DB Conn Pool opensource library) - pooler.jar(库基于Java DB的康恩池开源) These files contains OpenSwing sources that can be useful to include in the IDE to debug OpenSwing classes:这些文件包含OpenSwing来源可以是有益的,包括在IDE中调试OpenSwing类: - srccommonos.jar - srccommonos.jar - srcclientos.jar - srcclientos.jar - srcserveros.jar - srcserveros.jar Note: hsqldb.jar is only used in demos included with the OpenSwing distribution, so that it is not part of OpenSwing framework.注意: 的hsqldb.jar仅用于分配OpenSwing附带演示,所以它不是框架的一部分OpenSwing。 - beaninfo.jar - library that can be installed inside an IDE that supports Java Beans specifications (JBuilder, NetBeans, JDeveloper) - beaninfo.jar - 库,可以在支持Java的IDE豆规格(JBuilder中,从NetBeans,JDeveloper中)安装 Finally, beaninfo.jar file can included in the IDE to create a components palette; this facilitates UI components creation, by using the UI designer of the IDE.最后,beaninfo.jar文件可以包含在IDE中创建一个组件组件板,这有利于设计师的IDE UI组件创建用户界面,通过使用。 Currently three IDEs have been tested with OpenSwing components and are full compatibile with UI designing: NetBeans 4.1/5.x/6 b1, JBuilder 8/9/X/2005/2006, JDeveloper 10.1.x and Eclipse 3.x (using Window Builder plugin or Jigloo plugin).目前有三个IDE有过测试与OpenSwing组成部分,充分compatibile与UI设计:NetBeans的4.1/5.x/6 B1的,JBuilder中8/9/X/2005/2006时,JDeveloper和 Eclipse 3.x中10.1.x(使用Window Jigloo生成器插件或插件)。 IMPORTANT NOTE : do not include beaninfo.jar as project library: it has only to be included into IDE settings, in order to show the OpenSwing components palette within the IDE. 重要说明 :不包括作为项目库beaninfo.jar:它纳入IDE设置只有需要,为了显示OpenSwing IDE的组件面板内。 IMPORTANT NOTE : in order to use QueryUtil class, an implementation of Servlet API must be provided: for instance servlet-api.jar file (from tomcat/lib folder) can be included as project library . 重要提示 :为了使用QueryUtil类,Servlet的API实现必须提供:例如是servlet - api.jar文件(从Tomcat / lib文件夹)可列入项目库。 Optionally, you can include additional libraries, used by ClientUtils.getImage() method and by TreePanel and ImagePanel components to support additional image formats, such as .tif, .ico, .bmp, .pcx/.pic, .png .或者,您可以包括其他库,组件使用ClientUtils.getImage()方法和TreePanel和ImagePanel,以支持其他的图像格式,等。tif格式。ICO的。骨形态发生蛋白,.pcx / .pic。巴布亚新几内亚 。 These libraries are:这些库是: - JAI , a free library released from Sun that allows to read BMP, TIF and PNG image formats - 远流 ,Sun发布了一个免费图书馆,允许从读取BMP,TIF和PNG图像格式 - JIMI , a free library released from Sun that allows to read ICO, TIF, BMP, PIC/PCX, PNG image formats - 羁縻 ,Sun发布了一个免费的图书馆,让阅读从保险公司条例,tif格式,BMP和石化/ PCX,PNG图像格式 In the following section it will be described how including OpenSwing components (aka beanifo.jar file) as a palette in the IDE.在下面的部分将介绍如何OpenSwing组件包括在IDE组件板(又名beanifo.jar文件)。 Installing OpenSwing components palette in JBuilder 组件面板安装在JBuilder OpenSwing To create a palette of components in JBuilder:要创建在JBuilder组件面板: select Tools from menu bar从菜单栏中选择“工具” select Configure Palette and press Add button to define a new palette选择“配置面板”,然后按“添加”按钮来定义一个新的组件板 select new defined palette and go to the Add Components folder选择新定义的组件板,然后转到“添加组件”文件夹 press Select Library button and configure a new library by pressing New button按“选择库”按钮,并配置一个新库,按“新建”按钮 in New library wizard add the beaninfo.jar and close that window “新图书馆”向导添加beaninfo.jar并关闭该窗口 press Add from selected library and close all windows按“添加选定的图书馆”,并关闭所有窗口 Now the OpenSwing palette will be visible.现在OpenSwing组件板将可见。 Note: sometimes in JBuilder this procedure must be repeated twice because of a bug in some versions of JBuilder.注:有时在JBuilder必须重复此过程,因为在某些版本的JBuilder错误两次。 Installing OpenSwing components palette in NetBeans 组件面板安装在NetBeans OpenSwing To create a palette of components in NetBeans:要在NetBeans中创建一个组件组件板: Create a library definition for the components:创建一个组件库定义: select Tools | Library | New Library from menu bar选择“工具|资料库|新图书馆”菜单栏 set the library name (eg OpenSwing) and click OK设置库的名称(如OpenSwing),然后点击确定 when the newly created library is selected, click Add Jar/Folder当新创建的库被选中,点击添加JAR /文件夹 select all the openswing jar files (under the build directory in openswing installation) and click Add jar/folder选择所有openswing jar文件(在打造的openswing安装目录),然后点击添加JAR /文件夹 close the library manager.关闭库管理器。 Install Openswing components:安装Openswing组件: select Tools | Palette | Swing/AWT Components from menu bar to open the Palette manager选择工具|面板|秋千/ AWT组件从菜单栏打开组件板管理 create a new category via New Category button通过创建一个新分类按钮添加新类别 select the newly created category and select Add From Library选择新创建的类别,然后选择添加来自图书馆 select OpenSwing library and click Next选择OpenSwing库并点击下一步 select all the available components and click Next选择所有可用的组件,然后单击下一步 select OpenSwing category , click Finish and close the palette manager.选择OpenSwing类别中,单击完成,关闭面板管理器。 Add the library to a java application project.添加库到Java应用程序项目。 (Right-click on Libraries node and select Add Library). (右键单击库节点并选择添加库)。 It is recomended to change default behavior of NetBeans 6 when dropping a grid control within the UI designer: as default behavior NetBeans presets a not desirable layout for grid control just added.建议更改默认的NetBeans 6中的行为时,在UI设计师下降网格控制:预设为默认行为的NetBeans电网布局控制不理想刚添加。 To avoid this automatic layout settings, go to Tools - Options menu of NetBeans and select Miscellaneous button, press Advanced options button and select GUI Builder node; in the panel at the right change Layout Generation Style to Standard Java 6 Code.为了避免这种自动布局设置,进入“工具” - “选项”“NetBeans的菜单,并选择”其他“按钮,按”高级选项“按钮,然后选择”图形用户界面生成器“节点,在该小组在适当的改变”布局代风格“到”标准Java 6中的代码“。 This setting is valid for all forms to create.此设置适用于所有形式的创造。 For an already existing form, switch to design mode, select the root node of the form and right click with the mouse, select Properties and finally change Layout Generation Style to Standard Java 6 Code.对于一个已经存在的形式,切换到设计模式,选择根节点的形式和鼠标,选择“属性”,最终改变“布局生成样式”右击“标准Java 6的代码”。 Installing OpenSwing components palette in JDeveloper 10.1.2 组件面板安装OpenSwing在JDeveloper 10.1.2 To create a palette of components in JDeveloper you must first define a library:要在JDeveloper中创建一个组件,你必须首先定义一个库组件板: select Tools from menu bar从菜单栏中选择“工具” select Manage Libraries and select User libraries node and press New button to define a new library选择“管理图书馆”,选择“用户库”节点,然后按“新建”按钮来定义一个新的图书馆 set a name for the new library设置新的库的名称 efine the classpath by pressing Edit button to select the beaninfo.jar file efine按“编辑”按钮选择文件中的类路径beaninfo.jar press ok to close all windows按确定关闭所有窗口 To define the palette:要定义组件板: select Tools from menu bar从菜单栏中选择“工具” select Configure Palette and press Add button on the left to define a new palette选择“配置面板”,然后按“添加”在左边的按钮定义一个新的组件板 select new defined palette and press Add button on the right to add a library选择新定义的组件板,按“添加”按钮添加的权利库 select the library just created and select the filter Java Beans with BeanInfo only选择刚刚创建的库并选择“用的BeanInfo唯一的Java Bean的”过滤器 select all filters classes and add them选择所有过滤器类,并将它们添加 Now the OpenSwing palette will be visible.现在OpenSwing组件板将可见。 Note : maybe component images could be not visible; in that case you have to select images from beaninfo.jar, for each image not viewed. 注 :也许可以组成图像不可见,在这种情况下,你必须选择beaninfo.jar图像从来看,形象不是每个。 Installing OpenSwing components palette in Eclipse 3.x or WebSphere Studio IDEs 组件面板安装OpenSwing在Eclipse 3.x或WebSphere Studio的集成开发环境 Eclipses Visual Editor is not able to correctly render all OpenSwing graphics controls, because of it does not fully support Java Beans specifications. Eclipse的可视化编辑器不能够正确地提供一切OpenSwing图形控件,因为它,不完全支持Java Beans的规范。 You can use Eclipse and OpenSwing only if you include an Eclipse plugin that fully support Java Beans specifications.你可以使用Eclipse和OpenSwing只有当你有一个Eclipse插件,完全支持Java Beans的规范。 A good (non free) plugin for Eclipse 3.x is Window Builder - Swing Designer 一个很好的(非免费)3.x的插件Eclipse是窗口生成器-旋设计师 Another plugin for Eclipse 3.x is Jigloo , that it is distributed in dual licence: free for non commercial use and a commercial use licence. 另一个3.x的插件Eclipse是Jigloo,它是分布在双牌:免费的非商业用途和商业用途许可证。 When creating a project inside Eclipse, you have to include OpenSwing library to the project; to do that you should:当在Eclipse中创建一个项目,你必须包括OpenSwing库项目;在做,你应该: select Window from menu bar - Preferences - Java - Build Path - User Libraries选择“窗口”,从菜单栏“ - ”首选项“ - ”“爪哇” - “”构建路径“ - ”“用户库” press New button to create a libreary: name it for instance OpenSwing按“新建”按钮创建一个libreary:名称,例如“OpenSwing”它 press Add JARs to add all OpenSwing libraries (included in build folder of OpenSwing distribution)按“添加JAR文件”来添加所有OpenSwing库(在“建”的OpenSwing分发文件夹中) After doing these steps, you can include the library just created to the specified project:做这些步骤后,您可以包含刚刚创建到指定的项目库: select Project from menu bar - Properties - Java Build Path - Libraries选择“项目”,从菜单栏“ - ”属性“ - ”“Java构建路径” - “”图书馆“ press Add Library button and select the library created above按“添加库”按钮,选择上面创建的库 Apart that, you have to include OpenSwing beaninfo.jar file to the Eclispe palette; this operation depends on the UI designer (Eclipse plugin) you decided to use, such as Window Builder or Jigloo, as described below.此外,你必须包括OpenSwing“beaninfo.jar”文件到Eclipse的组件板,这样操作的用户界面设计师(Eclipse插件),你决定使用,如窗口Builder或Jigloo,如下所述而定。 Window Builder 窗口生成器 After installing Window Builder - Swing Designer (see Swing Designer installation instructions), you can create JFrame, JPanel and many other Swing components by:安装后的“窗口生成器 - 旋设计师”(见秋千设计安装说明),您可以创建JFrame的,JPanel并通过许多其他Swing组件: selecting File from menu bar选择“文件”的菜单栏 selecting New - Other menu items选择“新建” - “”其他“菜单项 expanding Designer - Swing folders扩大“设计师” - “”秋千“文件夹 selecting a Swing components, eg JFrame and creating a class选择一个Swing组件,例如JFrame和创建类 At this point Swing Designer plugin will open the class with two alternative views: Source and Design.在这一点上“摇摆设计师”插件将打开两个不同的观点类:“源”与“设计”。 When switching to Design view, it is available a Component Palette.当切换到“设计”视图中,它是可用组件组件板。 Inside this Component Palette it is possible to include all OpenSwing components, through the following steps:这里面组件面板是有可能的组成部分包括所有OpenSwing通过以下步骤: click with the right mouse button inside the Palette点击里面的组件板与鼠标右键 select Palette Manager in the popup menu just Viewed只是看选择弹出菜单中的“面板管理器” press Add Category button and specify a category name, such as OpenSwing and press Ok button按“新增分类”按钮,并指定一个如“OpenSwing”,按“OK”按钮的类别名称, select the category just created and press Add from Archive button选择刚刚创建的类别,按“添加来自存档”按钮 in the Archive input field specify the absolute path to the lib/BeanInfo.jar file included in the OpenSwing distribution and press ENTER在“档案”输入字段中指定的绝对路径的“库/ BeanInfo.jar”文件中OpenSwing分配,然后按ENTER包括 when the Select All button becomes enabled, press it and press Ok button to confirm all OpenSwing components当“全选”按钮将变为启用,按下它并按下“OK”按钮,确认所有OpenSwing组件 finally press Ok: at this point the OpenSwing palette will be visible in the Component Palette最后按“确定”:在这一点上OpenSwing组件板将在Component Palette可见 Note : if OpenSwing components are not visible inside the new category, close Eclipse and restart it. 注 :如果OpenSwing组件是不可见的新的类别里面,关闭Eclipse并重新启动它。 Jigloo plugin Jigloo插件 After installing Jigloo (see Jigloo plugin installation instructions), you can create
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 【正版授权】 IEC 61496-3:2025 EN Safety of machinery - Electro-sensitive protective equipment - Part 3: Particular requirements for active opto-electronic protective devices responsive t
- 【正版授权】 IEC 61400-5:2020/AMD1:2025 EN Amendment 1 - Wind energy generation systems - Part 5: Wind turbine blades
- 重庆汽车培训理论知识课件
- 重大安全发现管控课件
- 老年人糖尿病护理课件
- 老年人播音主持课件
- 老年人应急知识培训方案课件
- CN120204435A 一种综合药品稳定性实验箱灭菌控制方法及系统
- 水工监测工-渗流观测考试题库
- 第三节 第3课时 难点专攻夺高分-与圆有关的综合问题 2026年高三数学第一轮总复习
- 四川省2024年高等职业教育单独招生考试中职类语文试题及答案
- 木屑制粒机安全操作规程
- 湖南文艺出版社小学四年级上册全册音乐教案及计划
- 社区书记文明城市创建表态发言范文(五篇)
- 检维修管理制度
- 服务业绿色低碳发展
- 风电基础劳务分包合同(2篇)
- 房屋建筑工程 危险性较大分部分项工程巡检记录表
- 4MWh储能系统技术方案
- 软件平台建设和运营合同
- 1.3集合的基本运算(第1课时)课件高一上学期数学人教A版
评论
0/150
提交评论