javax.swing.plaf.basic.BasicInternalFrameTitlePane Java Examples
The following examples show how to use
javax.swing.plaf.basic.BasicInternalFrameTitlePane.
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
Source File: DefaultInternalFrameDriver.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@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() + '}'; } })); }