public void run()
{
int x = 10; int y = 10;
while (true)
{
label.setText("DATA");
label.setBounds(x, y, 200, 10);
if(y == 250 && x != 250) x+=5;
else if(x == 250){
y -= 5;
if( y == 10) break;
}
else y +=5;
}
}
Based on the part of my program i want the animation of 'label" to adjust to window screen size..
how can i do that..
Edited by ZekeDragon, 21 March 2010 - 12:26 AM.
Please use [code] tags (the # button) when you post code.


Sign In
Create Account

Back to top









