开发者

Java swing jLayeredPane

I have an code that adds jbutton on the clicked place in the jLayeredpane on mouse click. Now the problem is on resize. When i dont change the size of jLayeredpane on runtime there is no problem. When i maximize the window and i have made it as, the jLayeredpane will adjust to fit the screen so when i add a button on the jpane now and when the window size is reduced the buttons i have added is out of range and so 开发者_如何学Cit is not displayed. Any solution for this ?


The article Laying Out Components in a Layered Pane mentions, "Although a layered pane has no layout manager by default, you can still assign a layout manager to the layered pane."


Yes.. Use Layouts :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜