开发者

How to create a resizable rectangle in java swing? [duplicate]

开发者 https://www.devze.com 2023-01-26 09:55 出处:网络
This question already has an answer here: How can i create resizable rectangle in java swing? 开发者_StackOverflow(1 answer)
This question already has an answer here: How can i create resizable rectangle in java swing? 开发者_StackOverflow (1 answer) Closed 9 years ago.

I'm repeating same question, I need to create a rectangle which is re-sizable, in java swing.

How can i do this?

Any help is appreciated.


Rectangle r = new Rectangle(0, 0, 100, 200);
r.grow(100, 100); // resize :)
0

精彩评论

暂无评论...
验证码 换一张
取 消