- 博客(7)
- 收藏
- 关注
原创 Java Image resize
[code="java"]BufferedImage targetImage = new BufferedImage(targetWidth, targetHeight, BufferedImage.TYPE_INT_RGB); Graphics2D graphics2D = targetImage.createGraphics(); ...
2010-01-24 20:42:04
401
addKeyListener
在panel中addKeyListener无效:this.addKeyListener(new SearchKeyAdapter());但是用registerKeyboardAction就可以了。KeyStroke ks = KeyStroke.getKeyStroke registerKeyboardAction
2008-03-24 22:38:23
785
原创 An example
public class Test { /** * @param args */ public static void main(String[] args) { GrandfatherTest a = new ChildTest(); System.out.print("==="); a.doPrint(); } } class ChildTest extends FatherTest { St
2006-07-23 02:04:00
673
原创 calc
import java.applet.Applet;import java.awt.*;import java.awt.event.*;public class Calc extends Applet implements ActionListener{ Label result; Panel knoppen; Proc proc; public void ini
2004-11-14 21:30:00
637
原创 HelloWorld常见问题
不含包层次的HelloWorld.javapublic class HelloWorld{ public static void main(String[] args) { System.out.println("Hello World!"); }}保存在E:/java/src下,使用javac命令编译:E:/java/src>javac HelloWorld.java运行:E:/java/sr
2004-11-10 11:05:00
1107
原创 'class' or 'interface' expected
class or interface expectedThis error occurs when there is code outside of a class declaration. The usual cause of this is when youre declaring a few objects at the start of the class, and mist
2004-11-09 15:27:00
5787
原创 Fibonacci
/* Author:wulliam Create time:2004 10 26 Note:for java homework http://www.math.utah.edu/~beebe/software/java/fibonacci/Fibonacci3.java*/import java.lang.*;import java.util.*;public class Fib
2004-10-28 00:22:00
568
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人