资源简介
最新的sun公司官方API 界面也很不错哦。希望能帮到你
代码片段和文件信息
/*
* Copyright (c) 2002 Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms with or
* without modification are permitted provided that the following
* conditions are met:
*
* -Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
*
* -Redistribution in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* Neither the name of Oracle nor the names of
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* This software is provided “AS IS“ without a warranty of any
* kind. ALL EXPRESS OR IMPLIED CONDITIONS REPRESENTATIONS AND
* WARRANTIES INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY
* FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT ARE HEREBY
* EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
* DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
* RELATING TO USE MODIFICATION OR DISTRIBUTION OF THE SOFTWARE OR
* ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
* FOR ANY LOST REVENUE PROFIT OR DATA OR FOR DIRECT INDIRECT
* SPECIAL CONSEQUENTIAL INCIDENTAL OR PUNITIVE DAMAGES HOWEVER
* CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY ARISING OUT OF
* THE USE OF OR INABILITY TO USE SOFTWARE EVEN IF SUN HAS BEEN
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
*
* You acknowledge that Software is not designed licensed or
* intended for use in the design construction operation or
* maintenance of any nuclear facility.
*/
import java.awt.*;
import java.awt.event.*;
import java.text.*;
public class BidiSample extends frame {
static String text = “This text has \u0634\u0627\u062f\u062c\u0645\u0647\u0648\u0631 123456 \u0645\u0646 (Arabic)“;
static public void main(String[] args) {
new BidiSample().setVisible(true);
}
BidiSample() {
super(“Bidi Sample“);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
setBackground(Color.white);
setFont(new Font(“Lucida Sans“ Font.PLAIN 16));
setSize(400 300);
}
public void paint(Graphics g) {
Insets insets = getInsets();
int height = g.getFontMetrics().getHeight();
int y = insets.top;
int x = insets.left + 5;
y += height;
g.drawString(text x y);
y += height * 2;
g.drawString(“run“ x y);
g.drawString(“level“ x + 50 y);
g.drawString(“start“ x + 100 y);
g.drawString(“limit“ x + 150 y);
g.drawString(“text“ x + 200 y);
y += height;
Bidi bidi = new Bidi(text
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 43193566 2011-08-31 22:17 j2se7.chm
文件 766 2009-06-23 02:29 j2se7.ico
文件 86 2006-06-22 00:09 Web site.url
目录 0 2011-08-31 21:28 ap
目录 0 2011-08-31 21:28 ap
目录 0 2011-08-31 21:28 ap
目录 0 2011-08-31 21:28 ap
目录 0 2011-08-31 21:28 ap
文件 468 2011-08-31 21:28 ap
文件 2207 2011-08-31 21:28 ap
文件 3993 2011-08-31 21:28 ap
文件 369 2011-08-31 21:28 ap
文件 2768 2011-08-31 21:28 ap
文件 3931 2011-08-31 21:28 ap
文件 4337 2011-08-31 21:28 ap
文件 397 2011-08-31 21:28 ap
文件 1282 2011-08-31 21:28 ap
文件 9287 2011-08-31 21:28 ap
文件 369 2011-08-31 21:28 ap
文件 3128 2011-08-31 21:28 ap
文件 4168 2011-08-31 21:28 ap
目录 0 2011-08-31 21:28 ap
文件 13214 2011-08-31 21:28 ap
文件 62731 2011-08-31 21:28 ap
文件 89062 2011-08-31 21:28 ap
文件 373 2011-08-31 21:28 ap
文件 2733 2011-08-31 21:28 ap
文件 3889 2011-08-31 21:28 ap
文件 375 2011-08-31 21:28 ap
文件 2595 2011-08-31 21:28 ap
文件 3713 2011-08-31 21:28 ap
............此处省略83个文件信息
相关资源
- JavaWeb学生在线选课系统Struts+Hibernat
- javaweb医药管理系统
- 基于开源OPENCV人脸识别java版
- OAuth2.0 JAVA服务端和客户端功能实现带
- java开发的国家电力系统所有源代码
- 基于JAVAWEB购物商城项目
- 基于javaweb的某网络相册项目源码
- JAVA API1.6中文文档 高清完整CHM版
- 《公立大学注册系统》Java桌面版源码
- JavaEE开发的颠覆者- Spring Boot实战 pd
- 二手房交易java项目系统10
- java二手房交易系统
- Java销售管理系统源码+程序
- Java_SSM成型框架 + Mysql数据库sql文件
- java 并发编程的艺术
- 基于java+SQLserver的宿舍管理系统
- 华东交通大学2017年6月课程设计--鲜花
- java项目之学生信息管理系统
- opencv_java342.dylib.zip
- java+web音乐翻唱网站+j2ee平台Java源码
- java开发html转pdf
- java+web项目开发javaweb开发完整源代码
- 基于JSP和Servlet的购物商场系统maven
- 基于ssm网上书店图书商城javaweb毕业设
- 基于ssm高校贫困生管理系统java毕业设
- Java BS网络教学平台+毕业设计(完整版
- 魔乐科技JAVA培训笔记
- JAVA学生会管理信息系统SSH框架、mys
- (从新整理版)java项目-电信运营计费
- javaweb课程设计报告人事管理系统.zi
评论
共有 条评论