@Override public void installUI(JComponent c) { super.installUI(c); c.setOpaque(false); }
@Override public void installUI(JComponent c) { super.installUI(c); c.setOpaque(false); } };
@Override public void installUI(JComponent c) { super.installUI(c); c.setOpaque(false); }
@Override public void installUI(JComponent c) { super.installUI(c); c.setBackground(Color.WHITE); }
@Override public void installUI(JComponent c) { super.installUI(c); c.setOpaque(false); }
@Override public void installUI(JComponent c) { super.installUI(c); Border b = c.getBorder(); if (b == null || b instanceof UIResource) { c.setBorder(new BorderUIResource(BorderFactory.createEmptyBorder(0, 10, 0, 10))); } Color color = c.getBackground(); if (color == null || color instanceof ColorUIResource) { c.setOpaque(true); c.setBackground(new ColorUIResource(Color.white)); } }
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); } } }); }
public void installUI(JComponent c) { super.installUI(c); DockView v = (DockView) c; Container parent = c.getParent(); if (parent instanceof TabbedDockableContainer) { installTabbedDockableBorder(v); } else if (parent instanceof SplitContainer) { installSingleDockableBorder(v); } else { installMaximizedDockableBorder(v); } c.addAncestorListener(ancestorListener); }
public void installUI(JComponent c) { super.installUI(c); installTitleBorder(c); BoxLayout box = new BoxLayout(titleBar, BoxLayout.X_AXIS); titleBar.setLayout(box); titleBar.setOpaque(true); titleBar.addPropertyChangeListener(this); titleBar.addAncestorListener(ancestorListener); installButtons(); installLabel(); Dockable d = titleBar.getDockable(); if(d != null) { titleBar.getDockable().getDockKey().addPropertyChangeListener(this); configureButtons(titleBar); } c.setCursor(Cursor.getDefaultCursor()); // needs this to avoid artifacts with floating dockable borders. }