开发者

line is erasing in java

开发者 https://www.devze.com 2022-12-23 06:58 出处:网络
I make an Application in java and draw rectangle. When I search from combobox the rectangle is under the combobox and when I close combobox some parts of the rectangle which was under the combobox is

I make an Application in java and draw rectangle. When I search from combobox the rectangle is under the combobox and when I close combobox some parts of the rectangle which was under the combobox is deleted. How 开发者_StackOverflowcan I make rectangle to be visible after the combobox was closed.


Suggest you read this tutorial. As suggested there, call the super.paint(g) after your own painting.


repaint the panel in which the rectangle is visible

0

精彩评论

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