⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gctest.java

📁 gif can source. display gif picture
💻 JAVA
字号:
// File: GCTest.java// Utility/Demo Application to preview Animated GIF's// displayed using GIFCanvas classes.// Copyright (C) 1998 by Bill Giel/KC Multimedia and Design Group, Inc.// http://www.kcmultimedia.com// info@kcmultimedia.com//// April 29, 1998//// Usage://// java GCTest <imagename.gif>//// Note: Package com.kcmultimedia.gifcanvas must be accessibleimport java.awt.*;import java.io.*;import com.kcmultimedia.gifcanvas.*;public class GCTest extends Frame{    public GCTest(String title, String imagename)        throws Exception    {        super(title); 	    setLayout(new BorderLayout());        GIFCanvas gif = new GIFCanvas(new File(imagename));	    add("Center", gif);	    pack();	    show();        gif.start();    }    public boolean handleEvent(Event e)    {        if(e.id == Event.WINDOW_DESTROY){            System.exit(0);        }        return super.handleEvent(e);    }        public static void main(String[] args)    {        String imagename = null;        System.out.println("\nGIFCanvas Test - Animated GIF component (Java 1.02 compatible)");        System.out.println("Version 1.1  Copyright(C)1998 by Bill Gie/KCMDG, All rights reserved.");        System.out.println("http://www.kcmultimedia.com / info@kcmultimedia.com");	    if(args.length == 1)	        imagename = args[0];	    else{	        System.out.println("\nUsage: java GCTest <image file>");	        System.exit(0);	    }	    try{	        new GCTest("GIFCanvas Test", imagename); 	    }catch(Exception e){	        System.out.println(e.toString());	        System.exit(0);	    }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -