PlainAquaToolbarUI.java 文件源码

java
阅读 32 收藏 0 点赞 0 评论 0

项目:incubator-netbeans 作者:
public void componentAdded(ContainerEvent e) {
    Container c = (Container) e.getSource();
    boolean isEditorToolbar = "editorToolbar".equals (c.getName());
    installButtonUI (e.getChild(), isEditorToolbar);
    if (isEditorToolbar) {
        //It's an editor toolbar.  Aqua's combo box ui paints outside
        //of its literal component bounds, and doesn't honor opacity.
        //Need to ensure the toolbar is tall enough that its border is
        //not hidden.
        Dimension min = new Dimension (32, 34);
        ((JComponent)e.getContainer()).setPreferredSize(min);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号