Java Code Examples for javax.swing.border.CompoundBorder#getInsideBorder()
The following examples show how to use
javax.swing.border.CompoundBorder#getInsideBorder() .
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: CommonTestsCfgOfCreate.java From netbeans with Apache License 2.0 | 5 votes |
/** */ private static void disableBorderTitles(Border border) { if (border instanceof TitledBorder) { disableBorderTitle((TitledBorder) border); return; } if (!(border instanceof CompoundBorder)) { return; } Stack<CompoundBorder> stack = new Stack<CompoundBorder>(); stack.push((CompoundBorder) border); while (!stack.empty()) { CompoundBorder cb = stack.pop(); Border b; b = cb.getOutsideBorder(); if (b instanceof CompoundBorder) { stack.push((CompoundBorder) b); } else if (b instanceof TitledBorder) { disableBorderTitle((TitledBorder) b); } b = cb.getInsideBorder(); if (b instanceof CompoundBorder) { stack.push((CompoundBorder) b); } else if (b instanceof TitledBorder) { disableBorderTitle((TitledBorder) b); } } }
Example 2
Source File: Test4856008.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 3
Source File: Test6978482.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 4
Source File: Test4856008.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 5
Source File: Test6978482.java From hottub with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 6
Source File: Test4856008.java From hottub with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 7
Source File: Test6978482.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 8
Source File: Test4856008.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 9
Source File: Test6978482.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 10
Source File: Test4856008.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 11
Source File: Test6978482.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 12
Source File: Test4856008.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 13
Source File: MenuEditLayer.java From netbeans with Apache License 2.0 | 4 votes |
private static void installAcceleratorPreview(JMenuItem item) { if(item instanceof JMenu) return; //detect accelerator key boolean already_has_accel = false; if(item.getAccelerator() != null) already_has_accel = true; if(item.getAction() != null && item.getAction().getValue(Action.ACCELERATOR_KEY) != null) already_has_accel = true; boolean already_has_accel_border = false; if(item.getBorder() == accel_border) { already_has_accel_border = true; //uninstall if needed if(already_has_accel) { item.setBorder(null); return; } } if(item.getBorder() instanceof CompoundBorder) { CompoundBorder comp = (CompoundBorder)item.getBorder(); if(comp.getInsideBorder() == accel_border) { already_has_accel_border = true; //uninstall if needed if(already_has_accel) { item.setBorder(comp.getOutsideBorder()); return; } } } if(already_has_accel_border) return; if(already_has_accel) return; if(item.getBorder() == null) { item.setBorder(accel_border); return; } item.setBorder(BorderFactory.createCompoundBorder( item.getBorder(),accel_border)); }
Example 14
Source File: Test6978482.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 15
Source File: Test4856008.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 16
Source File: Test6978482.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 17
Source File: Test4856008.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 18
Source File: Test6978482.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 19
Source File: Test4856008.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }
Example 20
Source File: Test6978482.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private Border getRolloverMarginBorder() { JToggleButton button = new JToggleButton(); CompoundBorder border = (CompoundBorder) getNonRolloverBorder(button); return border.getInsideBorder(); }