Home > Back-end >  Encounter a problem, want to use JPanel drawing, need to draw a rectangle, rectangle and character.
Encounter a problem, want to use JPanel drawing, need to draw a rectangle, rectangle and character.

Time:11-26

Encounter a problem, want to use JPanel drawing, need to draw a rectangle, rectangle and character, is there a master ah

CodePudding user response:

This is not very simple
Rewrite the JPanel paintComponent method
G2d. DrawRect
G2d. DrawString

CodePudding user response:

In the method, a manual picture, is the meaning of rewriting method,
  • Related