• 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
Is this realistic enough?
1 Votes
"Which is harder to master — Machine Learning or Cybersecurity? And why?"
1 Votes
Need friends
0 Votes
"What’s the best way to combine creativity and coding? Can storytelling improve web apps?"
1 Votes
MASS N NUMBER OF OBJECT DELETION FROM A CLASS
0 Votes
I am a beginner, please teach me how to use Python
0 Votes
Web Development
0 Votes
Can u learn multiple language at the same time, without misplacing the formats of each with the other
0 Votes
Python
1 Votes
Can someone please explain python for me
0 Votes