Skip to content

WebComboBox not correctly visible outside of WebFrame #72

@Endogen

Description

@Endogen

I'm on Win7 64bit and using jdk1.7.0_10 and WebLAF 1.25 Preview. When opening a WebComboBox and the dropdown element is bigger then the frame, then the dropdown element will be displayed with a border.
See screenshot: http://postimg.org/image/n01f4zwnx/

public class ComboTest {
    public static void main(String args[]) {
        WebLookAndFeel.install();

        boolean decorateFrames = WebLookAndFeel.isDecorateFrames();
        WebLookAndFeel.setDecorateFrames(true);
        WebLookAndFeel.setDecorateDialogs(true);

        WebFrame frame = new WebFrame();
        frame.setLayout(new FlowLayout());
        frame.setPreferredSize(new Dimension(500,100));
        frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);

        final WebComboBox webComboBox = new WebComboBox();
        webComboBox.setEditable(true);
        frame.add(webComboBox);

        WebButton button = new WebButton("Add new item");
        button.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                webComboBox.addItem("test");
            }
        });
        frame.add(button);

        frame.pack();
        frame.setLocationRelativeTo(null);

        WebLookAndFeel.setDecorateFrames(decorateFrames);
        frame.setVisible(true);
    }
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions