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
精彩评论