文件名称:java棋牌游戏开发.txt
文件大小:5KB
文件格式:TXT
更新时间:2023-01-14 10:44:45
swing
swing游戏开发 public void mouseReleased(MouseEvent e){} public void mouseEntered(MouseEvent e) {} public void mouseExited(MouseEvent e) {} public void mouseClicked(MouseEvent e) { if(e.getClickCount()>=2) chesspad.remove(this); } } class ChessPoint_white extends Canvas implements MouseListener { ChessPad chesspad=null; ChessPoint_white(ChessPad p) { setSize(20,20);addMouseListener(this); chesspad=p; } public void paint(Graphics g) { g.setColor(Color.white);g.fillOval(0,0,20,20); }