开发者

Implementing a drop down form in Java Swing

I basically want to have a form that can toggle between a simple and a detailed mode.

Whats the best way to go about implementing 开发者_运维问答this in Swing?

Many thanks


Use a BorderLayout. Put the detail panel in the south and make it invisible. Then when you click the "Details" button you set the panel visible and pack() the frame. Or if you don't want the frame to change size then you would need to revalidate() and repaint() the parent container.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜