本文整理了Java中javax.swing.JComponent.addContainerListener()
方法的一些代码示例,展示了JComponent.addContainerListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComponent.addContainerListener()
方法的具体详情如下:
包路径:javax.swing.JComponent
类名称:JComponent
方法名:addContainerListener
暂无
代码示例来源:origin: org.fudaa.framework.ebli/ebli-2d
protected void addContainerListenerForLegendPanel(final ContainerListener _l) {
pnLegendes_.addContainerListener(_l);
}
代码示例来源:origin: org.netbeans.api/org-netbeans-swing-plaf
public void installUI( JComponent c ) {
super.installUI(c);
//c.setBorder(b);
c.setOpaque(false);
c.addContainerListener(this);
installButtonUIs (c);
}
代码示例来源:origin: org.netbeans.api/org-netbeans-swing-plaf
@Override
public void installUI( JComponent c ) {
super.installUI(c);
c.addContainerListener(this);
boolean isEditorToolbar = "editorToolbar".equals (c.getName());
c.setBackground(UIManager.getColor("NbExplorerView.background"));
c.setOpaque(true);
installButtonUIs (c, isEditorToolbar);
}
代码示例来源:origin: nifty-gui/nifty-gui
jComp.addContainerListener(new ContainerListener() {
public void componentAdded(ContainerEvent e) {
updateContainerEventService();
代码示例来源:origin: net.sourceforge.mydoggy/mydoggy-plaf
public void installUI(JComponent c) {
super.installUI(c);
installDefaults(c);
this.panel = c;
// Drag Gesture
final ToolWindowTitleBarDragGesture dragGesture = new ToolWindowTitleBarDragGesture(descriptor);
SwingUtil.registerDragGesture(c, dragGesture);
panel.addContainerListener(new ContainerAdapter() {
public void componentAdded(ContainerEvent e) {
if (e.getChild() instanceof DragGestureInitiator) {
DragGestureInitiator dragGestureInitiator = (DragGestureInitiator) e.getChild();
dragGestureInitiator.setDragGesture(dragGesture);
}
}
});
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
/** Installs the UI settings for the specified component */
public void installUI(JComponent c)
{
super.installUI(c);
c.addContainerListener(new SplitPaneContListener());
if(c instanceof JSplitPane)
{
JSplitPane sp=(JSplitPane)c;
Component child=sp.getLeftComponent();
setContentBorder(child);
child=sp.getRightComponent();
setContentBorder(child);
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
c.addContainerListener(this);
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
c.setFont (f);
c.addContainerListener (this);
Component[] kids = c.getComponents();
for (int i=0; i < kids.length; i++) {
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
c.setFont (f);
c.addContainerListener (this);
Component[] kids = c.getComponents();
for (int i=0; i < kids.length; i++) {
内容来源于网络,如有侵权,请联系作者删除!