• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
+ 1

how can i use moveTo function to move a rectangle in swing ?

javaswing
14th Mar 2017, 6:30 PM
Somnath Ghosh
Somnath Ghosh - avatar
1 Odpowiedź
+ 12
You need to repaint/draw the shape after assigning the new position by the moveTo method. General example for moveTo: http://www.java2s.com/Code/Java/2D-Graphics-GUI/GeneralPath.htm
14th Mar 2017, 8:16 PM
Tashi N
Tashi N - avatar

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Fix Rivers in 2D Terrain Map Generator
5 Votes
What Is the most complicated thing you can do
1 Votes
How the operators and commands in this code are executed?
1 Votes
Hello everyone, I want to learn programming, I don't know where to start.
1 Votes
Combination
0 Votes
Will I get the certificate for free if I completed the free course of web development (I am not on pro subscription)
0 Votes
Somebody knows how to solve the problem finance app. Even my result is like it must be, but still I can't pass it
0 Votes
I finished introduction to python
0 Votes
i am begineer
0 Votes
UI and UX
1 Votes