1.My eclipse
2.急需基于eclipse的关关联JAVA小游戏源代码!!联源!关关联cpm联盟源码
My eclipse
Eclipse æ¯ä¸ä¸ªIDEï¼Integrated Developing Environmentï¼ï¼èè¿ä¸ªIDEæ¯å 许å®è£ 第ä¸æ¹å¼åçæ件æ¥ä½¿èªèº«çåè½å¾å°æ©å±åå¢å¼ºçï¼èMyeclipseå°±æ¯å ¶ä¸çä¸ç§æåçæ件éä¹ä¸ï¼MyEclipseå°å¼åè 常ç¨å°çä¸äºæç¨çæ件é½éåèµ·æ¥ï¼ä½å®æ¯æ¶è´¹çã
Eclipseæ¯ä¸ä¸ªå¼æ¾æºä»£ç ,联源åºäºJavaçå¯æ©å¼ çå¼åå¹³å°ï¼å¤æ°äººé½æ¯å°Eclipseä½ä¸ºJavaçéæå¼åç¯å¢ä½¿ç¨ï¼è½ç¶Eclipse使ç¨Javaå¼åï¼ä½Eclipseä¸ä» ä» å±éäºJavaå¼åï¼è¿å¯ç¨äºå ¶å®è¯è¨çå¼åï¼å¦C/C++;
Eclipseæ¯ä¸ä¸ªæ¡æ¶åä¸ç»æå¡ï¼å®éè¿åç§æ件æ¥æ建å¼åç¯å¢ï¼å æ¤åªè¦æä¾æ¯æC/C++ æ件便è½è¿è¡ç¸åºè¯è¨çå¼åï¼</DIV>
Eclipseææ©æ¯ç±IBMå¼åçï¼åæ¥IBMå°Eclipseä½ä¸ºä¸ä¸ªå¼åæºä»£ç ç项ç®ï¼ç®ç»äºå¼æºç»ç»Eclipse.orgä½ä»ç±IBMçåå ¬å¸OTIï¼ä¸»è¦ä»äºEclipseå¼åç人åï¼ç»§ç»Eclipseçå¼å.
MyEclipse为Eclipseæä¾äºä¸ä¸ªå¤§éç§æåå¼æºçJavaå·¥å ·çéåï¼è¿è§£å³äºåç§å¼æºå·¥å ·çä¸ä¸è´å缺ç¹ãNitroXæ¯ä¸ä¸ªç¹æè强大çå éJava Webåºç¨å¼åçå·¥å ·ï¼è¿å å«äºä¸ä¸ªå¼ºå¤§ä¸è½å¤ç¼è¯ææJSPåStruts Webåºç¨çå·¥å ·AppXRayãè¿äºå·¥å ·è§£æJavaåXMLé ç½®æ件.
MyEclipseçå®é ä»·å¼æ¥èªå å«çåå¸å ä¸ç大éçå·¥å ·ãå¦CCS/JS/HTML/XMLçç¼è¾å¨ï¼å¸®å©å建EJBåStruts项ç®çå导并产ç项ç®çææ主è¦çç»ä»¶å¦action/session bean/formçãè¿å å«ç¼è¾Hibernateé ç½®æ件åæ§è¡SQLè¯å¥çå·¥å ·ã
急需基于eclipse的JAVA小游戏源代码!!关关联小波阈值函数源码修改!联源淘宝零用钱源码
单人版五子棋,关关联不用导入,联源直接新建一个mywindow类就行,关关联然后把一下代码粘贴就Ok了。联源或者,关关联直接用dos就可以了。联源。关关联YY机器人源码定做
---------------------
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class mypanel extends Panel implements MouseListener
{
int chess[][] = new int[][];
boolean Is_Black_True;
mypanel()
{
Is_Black_True = true;
for(int i = 0;i < ;i++)
{
for(int j = 0;j < ;j++)
{
chess[i][j] = 0;
}
}
addMouseListener(this);
setBackground(Color.BLUE);
setBounds(0,联源 0, , );
setVisible(true);
}
public void mousePressed(MouseEvent e)
{
int x = e.getX();
int y = e.getY();
if(x < || x > + ||y < || y > +)
{
return;
}
if(chess[x/-1][y/-1] != 0)
{
return;
}
if(Is_Black_True == true)
{
chess[x/-1][y/-1] = 1;
Is_Black_True = false;
repaint();
Justisewiner();
return;
}
if(Is_Black_True == false)
{
chess[x/-1][y/-1] = 2;
Is_Black_True = true;
repaint();
Justisewiner();
return;
}
}
void Drawline(Graphics g)
{
for(int i = ;i <= ;i += )
{
for(int j = ;j <= ; j+= )
{
g.setColor(Color.WHITE);
g.drawLine(i, j, i, );
}
}
for(int j = ;j <= ;j += )
{
g.setColor(Color.WHITE);
g.drawLine(, j, , j);
}
}
void Drawchess(Graphics g)
{
for(int i = 0;i < ;i++)
{
for(int j = 0;j < ;j++)
{
if(chess[i][j] == 1)
{
g.setColor(Color.BLACK);
g.fillOval((i + 1) * - 8, (j + 1) * - 8, , );
}
if(chess[i][j] == 2)
{
g.setColor(Color.WHITE);
g.fillOval((i + 1) * - 8, (j + 1) * - 8, , );
}
}
}
}
void Justisewiner()
{
int black_count = 0;
int white_count = 0;
int i = 0;
for(i = 0;i < ;i++)//横向判断
{
for(int j = 0;j < ;j++)
{
if(chess[i][j] == 1)
{
black_count++;
if(black_count == 5)
{
JOptionPane.showMessageDialog(this, "黑棋胜利");
Clear_Chess();
return;
}
}
else
{
black_count = 0;
}
if(chess[i][j] == 2)
{
white_count++;
if(white_count == 5)
{
JOptionPane.showMessageDialog(this, "白棋胜利");
Clear_Chess();
return;
}
}
else
{
white_count = 0;
}
}
}
for(i = 0;i < ;i++)//竖向判断
{
for(int j = 0;j < ;j++)
{
if(chess[j][i] == 1)
{
black_count++;
if(black_count == 5)
{
JOptionPane.showMessageDialog(this, "黑棋胜利");
Clear_Chess();
return;
}
}
else
{
black_count = 0;
}
if(chess[j][i] == 2)
{
white_count++;
if(white_count == 5)
{
JOptionPane.showMessageDialog(this, "白棋胜利");
Clear_Chess();
return;
}
}
else
{
white_count = 0;
}
}
}
for(i = 0;i < 7;i++)//左向右斜判断
{
for(int j = 0;j < 7;j++)
{
for(int k = 0;k < 5;k++)
{
if(chess[i + k][j + k] == 1)
{
black_count++;
if(black_count == 5)
{
JOptionPane.showMessageDialog(this, "黑棋胜利");
Clear_Chess();
return;
}
}
else
{
black_count = 0;
}
if(chess[i + k][j + k] == 2)
{
white_count++;
if(white_count == 5)
{
JOptionPane.showMessageDialog(this, "白棋胜利");
Clear_Chess();
return;
}
}
else
{
white_count = 0;
}
}
}
}
for(i = 4;i < ;i++)//右向左斜判断
{
for(int j = 6;j >= 0;j--)
{
for(int k = 0;k < 5;k++)
{
if(chess[i - k][j + k] == 1)
{
black_count++;
if(black_count == 5)
{
JOptionPane.showMessageDialog(this, "黑棋胜利");
Clear_Chess();
return;
}
}
else
{
black_count = 0;
}
if(chess[i - k][j + k] == 2)
{
white_count++;
if(white_count == 5)
{
JOptionPane.showMessageDialog(this, "白棋胜利");
Clear_Chess();
return;
}
}
else
{
white_count = 0;
}
}
}
}
}
void Clear_Chess()
{
for(int i=0;i<;i++)
{
for(int j=0;j<;j++)
{
chess[i][j]=0;
}
}
repaint();
}
public void paint(Graphics g)
{
Drawline(g);
Drawchess(g);
}
public void mouseExited(MouseEvent e){ }
public void mouseEntered(MouseEvent e){ }
public void mouseReleased(MouseEvent e){ }
public void mouseClicked(MouseEvent e){ }
}
class myframe extends Frame implements WindowListener
{
mypanel panel;
myframe()
{
setLayout(null);
panel = new mypanel();
add(panel);
panel.setBounds(0,, , );
setTitle("单人版五子棋");
setBounds(, , , );
setVisible(true);
addWindowListener(this);
}
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
public void windowDeactivated(WindowEvent e){ }
public void windowActivated(WindowEvent e){ }
public void windowOpened(WindowEvent e){ }
public void windowClosed(WindowEvent e){ }
public void windowIconified(WindowEvent e){ }
public void windowDeiconified(WindowEvent e){ }
}
public class mywindow
{
public static void main(String argc [])
{
myframe f = new myframe();
}
}