本文整理汇总了Java中javax.swing.plaf.basic.BasicInternalFrameTitlePane类的典型用法代码示例。如果您正苦于以下问题:Java BasicInternalFrameTitlePane类的具体用法?Java BasicInternalFrameTitlePane怎么用?Java BasicInternalFrameTitlePane使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BasicInternalFrameTitlePane类属于javax.swing.plaf.basic包,在下文中一共展示了BasicInternalFrameTitlePane类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTitlePane
import javax.swing.plaf.basic.BasicInternalFrameTitlePane; //导入依赖的package包/类
@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() + '}';
}
}));
}
示例2: add
import javax.swing.plaf.basic.BasicInternalFrameTitlePane; //导入依赖的package包/类
@Override
public Component add(Component comp) {
// Don't count internal swing components
if (!(comp instanceof BasicInternalFrameTitlePane)) {
hasContent = true;
}
return super.add(comp);
}
示例3: testCreatePropertyChangeListener
import javax.swing.plaf.basic.BasicInternalFrameTitlePane; //导入依赖的package包/类
public void testCreatePropertyChangeListener() {
PropertyChangeListener listener = pane.createPropertyChangeListener();
assertTrue("!= null", listener != null);
assertTrue("instanceof TitlePaneLayout",
listener instanceof BasicInternalFrameTitlePane.PropertyChangeHandler);
}
示例4: testCreateLayout
import javax.swing.plaf.basic.BasicInternalFrameTitlePane; //导入依赖的package包/类
public void testCreateLayout() {
LayoutManager layout = pane.createLayout();
assertTrue("!= null", layout != null);
assertTrue("instanceof TitlePaneLayout",
layout instanceof BasicInternalFrameTitlePane.TitlePaneLayout);
}