tags:

views:

122

answers:

2

for example I want to have a sentence like "System" in my main frame which can move from left side of the frame to the right side of the frame or up to the down.how can I do it??

+3  A: 

I think you are trying to implement a sliding text. You may use the Timer class to set your label's(or whatever the component is) position. Every time the Timer ticks, you may increment the position or decrement it, the rest is up to your choice.

And I also must say, that you should be more clear when asking questions.

Erkan Haspulat
A: 

I guess you are looking for a mqrquee component in Swing. Here is a simple3 example of how to rite one in swing.

Suraj Chandran