Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在重复同样的问题,我需要在 java swing 中创建一个可重新调整大小的矩形。
我怎样才能做到这一点?
任何帮助表示赞赏。
Rectangle r = new Rectangle(0, 0, 100, 200); r.grow(100, 100); // resize :)