资源简介
JavaMail开发的jar包jaf.
JAF(JavaBeans Activation Framework) JAF,即为JavaBeans Activation Framework的缩写
代码片段和文件信息
/*
* @(#)CompViewer.java 1.5 07/07/13
*
* Copyright 1997-2007 Sun Microsystems Inc. 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.
*
* - Redistributions 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 Sun Microsystems nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS
* IS“ AND ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL
* EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import java.awt.*;
import java.beans.*;
import java.lang.reflect.Method;
import java.io.*;
import java.awt.event.*;
/**
* Class CompViewer
creates a ‘viewer‘ component
* that implements the Commandobject interface.
*
*/
public class CompViewer extends frame implements WindowListener {
/**
* Our constructor...
*/
public CompViewer(){
super(“Component“);
this.initCompViewer(null);
}
public CompViewer(String name){
super(name);
this.initCompViewer(name);
}
public void initCompViewer(String name){
if (name != null)
settitle(name);
setSize(400400);
setLayout(new BorderLayout());
this.addWindowListener(this);
}
////////////////////////////////////////////////////////////////////////
// we got our bean as a component display it!
void setBean(Component new_bean)
{
Dimension start_dim = null;
add((Component)new_bean “Center“);
start_dim = ((Component)new_bean).getPreferredSize();
if(start_dim.width != 0 && start_dim.height != 0) {
// this is what we do under normal conditions
start_dim.height += 40;
start_dim.width += 15;
this.setSize( start_dim );
((Component)new_bean).invalidate();
((Component)new_bean).validate();
((Component)new_bean).doLayout();
show();
}
else {
// we get here if for some
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2007-10-17 18:05 jaf-1.1.1\
目录 0 2007-10-17 18:05 jaf-1.1.1\docs\
目录 0 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\
文件 4820 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\constant-values.html
目录 0 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\resources\
文件 57 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\resources\inherit.gif
目录 0 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\
目录 0 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\
目录 0 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\
文件 5424 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\UnsupportedDataTypeException.html
文件 5304 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\URLDataSource.html
文件 5360 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\MimetypesFileTypeMap.html
文件 5336 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\MailcapCommandMap.html
文件 8892 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\FileTypeMap.html
文件 5312 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\FileDataSource.html
文件 5324 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\Commandob
文件 6857 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\DataContentHandlerFactory.html
文件 8738 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\DataContentHandler.html
文件 8787 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\CommandMap.html
文件 13291 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\DataSource.html
文件 7376 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\DataHandler.html
文件 14308 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\CommandInfo.html
文件 9521 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\MimeTypeParseException.html
文件 6660 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\MimeTypeParameterList.html
文件 6586 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\MimeType.html
文件 5360 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\class-use\ActivationDataFlavor.html
文件 8739 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\package-use.html
文件 3122 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\package-fr
文件 11162 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\package-summary.html
文件 8415 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\package-tree.html
文件 8950 2007-10-17 18:05 jaf-1.1.1\docs\javadocs\javax\activation\Commandob
............此处省略65个文件信息
- 上一篇:使用java编写的简单的网络五子棋
- 下一篇:sqljdbc4.jar包
相关资源
- 使用java编写的简单的网络五子棋
- 《Java基础入门》_课后习题答案
- Java 汉诺塔_Hannoi GUI 可视化_图形用户
- 西安软件公司java笔试题
- Java解析fsn文件
- 会议室预定系统的Java实现
- jsp+web+简单学生管理系统+mysql
- JAVA实现的网络白板
- Java 画图板基本图形、撤销、清空、重
- java爬虫完整代码
- java mrp算法实现
- SuperVCD纯JAVA编程
- Java汪文君高并发编程.txt
- 汪文君Java8新特性及实战视频教程完整
- 用java写的多线程聊天程序GUI界面soc
- java课程设计系列之魔板游戏.rar
- java用servlet实现文件上传到数据库
- JAVA贪吃蛇源代码
- java绘图程序代码
- java 一笔画问题
- Java私塾——模拟银行系统源代码
- java核心技术卷1源码 第10版
- ford-fulkerson算法求网络最大流(java实
- 匈牙利算法java实现
- java游戏毕业设计之基于java的五子棋
- 文件校验和源码
- javaSE Tutorial中文版
- JAVA双缓冲绘图源码
- java获取系统信息cpu,内存,硬盘方法
- 2020 兴业数金Java笔试题.docx
评论
共有 条评论