J#-point

Point point = lblBack.getLocation();//背景的位置
int x = point.x;
int y = point.y;
if(e.getKeyCode() == KeyEvent.VK_UP)
{
y+=5;
}

JLabel lblBack = new JLabel(new ImageIcon(""));

import java.awt.event.*;
ActionListener
KeyListener
MouseListener
MouseMotionLister
ListSelectListener

posted on 2014-07-06 22:24  ylbtech  阅读(93)  评论(0)    收藏  举报