Swing Implementation Windows Task window

Source: Internet
Author: User

Once in the open source project Openswing saw a similar QQ folding panel components, I found that Windows inside the task panel and that function somewhat similar, openswing code on a slightly more complex, so decided to write a hand, nonsense do not say first to see the effect of the comparison chart:

Windows Task window:

My simulation effect:

Oh, there are some kind of spirit, the following to say a few key points:

1. First to determine the overall structure: is a large panel nested n sub Panels

2. To determine the subpanel structure, first the header of the child panel to always display, the content panel (with children) can be hidden, so we use the BorderLayout layout subpanel, introduced jbuider verticalflowlayout layout content Panel, When you show or hide the panel, all the components on the RemoveAll () Subpanel are added again.

3. The last is the sub-Panel title button, the Content item label implementation, are inherited basic jcomponent

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.