Java Code Examples for javax.swing.plaf.basic.BasicInternalFrameTitlePane

The following examples show how to use javax.swing.plaf.basic.BasicInternalFrameTitlePane. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
@Override
public Component getTitlePane(ComponentOperator operator) {
    ComponentSearcher cs = new ComponentSearcher((Container) operator.getSource());
    cs.setOutput(operator.getOutput().createErrorOutput());
    return (cs.findComponent(new ComponentChooser() {
        @Override
        public boolean checkComponent(Component comp) {
            if (System.getProperty("java.version").startsWith("1.2")) {
                return comp.getClass().getName().endsWith("InternalFrameTitlePane");
            } else {
                return comp instanceof BasicInternalFrameTitlePane;
            }
        }

        @Override
        public String getDescription() {
            return "Title pane";
        }

        @Override
        public String toString() {
            return "getTitlePane.ComponentChooser{description = " + getDescription() + '}';
        }
    }));
}