Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Java°æÊÀ½çʱÖÓʾÀý

ÕâÊÇÒ»¸öJava°æµÄÊÀ½çʱÖÓʾÀý£¬ÒÆÖ²×ÔGerrit´´½¨µÄͬÃûSwingÓ¦Óã¨http://www.jug-muenster.de/swing-worldclock-427
£©£¬ÐèÒªÔËÐÐÔÚJRE1.5»òÒÔÉÏ»·¾³µ±ÖС£
ÒÆÖ²´ËʾÀýÖ÷ÒªÊÇÒòΪǰһÕóÒÆÖ²¹ýGerritµÄswingÔ­×ÓÖÓʾÀý£¬ËùνºÃʳÉË«£¬Õâ¸öÊÀ½çʱÖÓµÄʾÀý×ÔÈ»²»ÄܷŹý£¨»°ËµGerritΪʲôÄÇôϲ»¶×öʱÖÓ£¿……£©£¬±Ï¾¹Java×ÀÃæÓ¦ÓÃʵÀý±¾¾Í²»¶à£¬µ«·²Óвο¼¼ÛÖµµÄ»¹ÊÇÒª¶à×ö»ã×ܲźá£
ÁíÍ⣬´ËʾÀýÖйØÓÚ¶àʱÇøµÄ·Ö±æÓëÏÔʾ²¿·Ö£¬ÔÚ·Ç×ÀÃæÓ¦ÓÃÖÐÒ²¾ß±¸Ò»¶¨µÄ²Î¿¼¼ÛÖµ¡£
PS:ÓÉÓÚ´ËʾÀýÒÔLGame-Simple-0.2.5¿ª·¢£¬ËùÒÔÒ²¿ÉÒÔ¿´×÷ÊÇÊÀ½çʱÖÓµÄAWTʵÏÖ¡£
ÏÂÔصØÖ·£¨Ô´ÂëÔÚjarÖУ©£ºhttp://loon-simple.googlecode.com/files/WorldClock.7z
ÔËÐдúÂëÈçÏÂËùʾ£¨¹¹½¨¹ý³ÌÊ¡ÂÔÁËSwingÔ­°æµÄһЩ²½Ö裩£º
package org.loon.test;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.image.BufferedImage;
import org.loon.framework.game.simple.GameScene;
import org.loon.framework.game.simple.core.graphics.Deploy;
import org.loon.framework.game.simple.core.graphics.Screen;
import org.loon.framework.game.simple.utils.GraphicsUtils;
/**
* Copyright 2008 - 2009
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*
* @project loonframework
* @author chenpeng
* @email£ºceponline@yahoo.com.cn
* @version 0.1
*/
public class Main extends Screen {
// ´ËʾÀýÒÆÖ²×Ôhttp://www.jug-muenster.de/swing-worldclock-427/ͬÃûÓ¦ÓÃ
public Main() {
// ÉèÖô°Ìå±³¾°
this.setBackground(createBackgroundImage());
// ´´½¨Ê±¼ä¾«Áé


Ïà¹ØÎĵµ£º

PermGen space Java heap space ÄÚ´æÒç³ö


1¡¢
PermGen spaceµÄÈ«³ÆÊÇPermanent Generation space,ÊÇÖ¸ÄÚ´æµÄÓÀ¾Ã±£´æÇøÓòOutOfMemoryError: PermGen space´Ó±íÃæÉÏ¿´¾ÍÊÇÄÚ´æÒæ³ö£¬½â¾ö·½·¨Ò²Ò»¶¨ÊǼӴóÄڴ档˵˵Ϊʲô»áÄÚ´æÒæ³ö£ºÕâÒ»²¿·ÖÓÃÓÚ´æ·ÅClassºÍMetaµÄÐÅÏ¢,ClassÔÚ±» LoadµÄʱºò±»·ÅÈëPermGen spaceÇøÓò£¬ËüºÍºÍ´æ·ÅInstanceµÄHeapÇøÓò²»Í¬,GC(Garba ......

Java ÖÐ Vector¡¢ArrayList¡¢List ʹÓÃÉîÈëÆÊÎö


ÏßÐÔ±í£¬Á´±í£¬¹þÏ£±íÊdz£ÓõÄÊý¾Ý½á¹¹£¬ÔÚ½øÐÐJava¿ª·¢Ê±£¬JDKÒѾ­ÎªÎÒÃÇÌṩÁËһϵÁÐÏàÓ¦µÄÀàÀ´ÊµÏÖ»ù±¾µÄÊý¾Ý½á¹¹¡£ÕâЩÀà¾ùÔÚjava.util°üÖС£±¾ÎÄÊÔͼͨ¹ý¼òµ¥µÄÃèÊö£¬Ïò¶ÁÕß²ûÊö¸÷¸öÀàµÄ×÷ÓÃÒÔ¼°ÈçºÎÕýȷʹÓÃÕâЩÀà¡£ 
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
M ......

java ÖØдÓëÖØÔØ

ÖØдµÄÖ÷ÒªÓŵãÊÇÄܹ»¶¨Òå×ÓÀàÌØÓеÄÌØÕ÷: Èç:
public class Father{
public void speak(){
System.out.println("Father");
}
}
public class Son extends Father{
public void speak(){
System.out.println("son");
}
}
ÕâÒ²½Ð×ö¶à̬ÐÔ,ÖØд·½·¨Ö»ÄÜ´æÔÚÓÚ¾ßÓм̳йØϵµÄÀàÖÐ,ÖØд·½·¨Ö»ÄÜÖ ......

Java³ÌÐòÔ±µÄ¼¼Êõ·¢Õ¹


ÔúʵµÄJava»ù´¡£»ÊìϤJavaºËÐÄAPI£»
¾«Í¨J2EE¿ª·¢£»ÊìÁ·ÕÆÎÕEJB£»
¾«Í¨Java Web¿ª·¢£»ÊìÁ·ÕÆÎÕServlet/JSP£»
¾«Í¨Java XML¿ª·¢£»
 
¿ò¼Ü£º
¾«Í¨Spring¡¢Struts¡¢Hibernate¡¢JSFµÈ¿ò¼Ü£»
¾«Í¨axis1.0-axis2.0¡¢XFire¡¢CXFµÈ¿ò¼Ü£»
 
¹æ·¶£º
¾«Í¨Web Service£»
¾«Í¨Web2.0 £»
 
¹¤¾ß£º
......

JavaÖеÄimport

 
¡¡ ÓÐЩÈËдÁËÒ»Õó×Ó Java£¬¿ÉÊǶÔÓÚ Java µÄ package ¸ú import »¹ÊDz»Ì«Á˽⡣ºÜ¶àÈËÒÔΪԭʼÂë .java ÎļþÖÐµÄ import »áÈñàÒëÆ÷°ÑËù import µÄ³ÌÐòͨͨдµ½±àÒëºÃµÄ .class µµ°¸ÖУ¬»òÊÇÈÏΪ import ¸ú C/C++ µÄ #include ÏàËÆ£¬Êµ¼ÊÉÏ£¬ÕâÊÇ´íÎóµÄ¹ÛÄî¡£
¡¡¡¡
¡¡¡¡ÈÃÎÒÃÇÏÈÁ˽âһϣ¬Java µÄ package ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ