java applet »Ò»¸öÎå½ÇÐÇ
±¾ÒâÏ뻸öÎåÐǺìÆì,¿ÉÊÇÓÉÓÚ¼¼ÊõÎÊÌâ,×îÖÕÖ»»³öÒ»¸öÀ´,ËùÒÔÓÖ¸øËû¼ÓÁËЩ¶îÍâµÄ¹¦ÄÜ.
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import javax.swing.JApplet;
class Mystar extends JPanel implements MouseListener{
/**
*
*/
private static final long serialVersionUID = -1593070116999116510L;
public JPanel a=new JPanel();
int[] lx = new int[5]; // 5¸öXÍâ¶¥µã×ø±ê
int[] ly = new int[5]; // 5¸öYÍâ¶¥µã×ø±ê
int[] sx = new int[5]; // 5¸öXÄÚ¶¥µã×ø±ê
int[] sy = new int[5]; // 5¸öYÄÚ¶¥µã×ø±ê
public int x=50;
public int y=50;
int lr = 50; // Íâ¶¥µãÍâ½ÓÔ²°ë¾¶
public Mystar(int x,int y)
{
this.x=x;
this.y=y;
a.add(this);
setBackground(Color.red); //¸÷λ¸ßÊÖ,ËÄܸæËßÎÒ,ÕâÀïΪʲôÎÒÓÃa.set***¾Í²»ÐÐÁËÄØ??
a.addMouseListener(this); //×¢²áÊó±êʼþ
}
void math()
{
Ïà¹ØÎĵµ£º
The clone( ) method generates a duplicate copy of the object on which it is called. Only classes that implement the Cloneable interface can be cloned.
...clone()²úÉúÁËÒ»¸öµ÷ÓÃËüµÄ¶ÔÏóµÄ¸´ÖÆ;Ö»ÓÐʵÏÖÁËCloneable½Ó¿ÚµÄÀà²Å¿ÉÒÔ±»¸´ÖÆ¡£
The Cloneable interface defines no ......
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRo ......
ÊÖÉÏÒ»¸öÏîÄ¿ÐèҪͨ¹ýusb¿ÚÈ¥¶ÁÈ¡usbkeyµÄÐÅÏ¢£¬³§¼ÒÌṩµÄÖ»ÓÐC/C++µÄ½Ó¿Ú£¬¶øÖ÷Ó¦ÓÃÊÇjavaµÄ£¬ËùÒÔÐèҪʹÓÃjavaÈ¥µ÷Óö¯Ì¬Á´½Ó¿â£¬ËùÒÔ»¨Á˵ãʱ¼äÑо¿ÁËÏÂJNI¼¼Êõ£¬jdk¶ÔJNI¼¼Êõ·â×°µÃºÜµ½Î»£¬Ê¹ÓÃÆðÀ´·Ç³£¼òµ¥£¬JNI¼¼Êõ×î¹Ø¼ü»¹ÊÇÔÚÓÚjniÊý¾ÝÀàÐͺͱ¾µØÊý¾ÝÀàÐ͵Äת»»¡£Ïȼòµ¥ÂÞÁÐÏÂJNIµ ......
Reflection ÊÇ Java ³ÌÐò¿ª·¢ÓïÑÔµÄÌØÕ÷Ö®Ò»£¬ËüÔÊÐíÔËÐÐÖÐµÄ Java ³ÌÐò¶Ô×ÔÉí½øÐмì²é£¬»òÕß˵“×ÔÉ󔣬²¢ÄÜÖ±½Ó²Ù×÷³ÌÐòµÄÄÚ²¿ÊôÐÔ¡£ÀýÈ磬ʹÓÃËüÄÜ»ñµÃ Java ÀàÖи÷³ÉÔ±µÄÃû³Æ²¢ÏÔʾ³öÀ´¡£
Java µÄÕâÒ»ÄÜÁ¦ÔÚʵ¼ÊÓ¦ÓÃÖÐÒ²ÐíÓõò»ÊǺܶ࣬µ«ÊÇÔÚÆäËüµÄ³ÌÐòÉè¼ÆÓïÑÔÖиù±¾¾Í²»´æÔÚÕâÒ»ÌØÐÔ¡£ÀýÈ磬Pascal¡¢C ......