javax.swing.Box.Filler Java Examples
The following examples show how to use
javax.swing.Box.Filler.
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: javax_swing_Box_Filler.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #2
Source File: PClassCheckboxPanel.java From PolyGlot with MIT License | 5 votes |
private void addCheckBox(String title, String toolTip, ItemListener listener, int classId, int valueId) { gbc.weightx = 1; gbc.gridx = 0; final PCheckBox check = new PCheckBox(nightMode, fontSize) { @Override public void repaint() { this.setSize(parent.getWidth(), 20); super.repaint(); } }; check.setText(title); check.setSelected(rule.doesRuleApplyToClassValue(classId, valueId, true)); // st value before listener check.addItemListener(listener); check.setVerticalAlignment(javax.swing.SwingConstants.TOP); check.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); check.setToolTipText(toolTip); this.add(check, gbc); // do not add the "all" checkbox (with -1 ID) to the apply all list if (classId == -1) { allCheckBox = check; } else { applyClassesCheckboxes.add(check); } gbc.weightx = 9999; gbc.gridx = 1; this.add(new Filler(new Dimension(0,0),new Dimension(9999,9999),new Dimension(9999,9999)), gbc); gbc.gridy++; }
Example #3
Source File: javax_swing_Box_Filler.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #4
Source File: javax_swing_Box_Filler.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #5
Source File: javax_swing_Box_Filler.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #6
Source File: javax_swing_Box_Filler.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #7
Source File: javax_swing_Box_Filler.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #8
Source File: javax_swing_Box_Filler.java From hottub with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #9
Source File: javax_swing_Box_Filler.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #10
Source File: SimpleDock.java From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 | 5 votes |
private Filler getLeftFiller() { Filler filler = new Filler( new Dimension(0, 0), new Dimension(0, 0), new Dimension(32767, 32767)); filler.addMouseListener(new MouseAdapter() { @Override public void mouseClicked(MouseEvent me) { mainFrame.getGlassPane().setVisible(false); } }); return filler; }
Example #11
Source File: SimpleDock.java From Cognizant-Intelligent-Test-Scripter with Apache License 2.0 | 5 votes |
private void initFiller() { Filler filler = new Filler(new Dimension(0, 0), new Dimension(0, 0), new Dimension(32767, 32767)); filler.addMouseListener(new MouseAdapter() { @Override public void mouseEntered(MouseEvent me) { mainFrame.getGlassPane().setVisible(false); } }); add(filler, BorderLayout.CENTER); }
Example #12
Source File: javax_swing_Box_Filler.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #13
Source File: javax_swing_Box_Filler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #14
Source File: JavaElementPropertyAccessor.java From marathonv5 with Apache License 2.0 | 5 votes |
public String getPrecedingLabel() { Container container = component.getParent(); if (container == null) { return null; } List<Component> allComponents = findAllComponents(); // Find labels in the same row (LTR) // In the same row: labelx < componentx, labely >= componenty Point locComponent = component.getLocationOnScreen(); List<Component> rowLeft = new ArrayList<Component>(); for (Component label : allComponents) { Point locLabel = label.getLocationOnScreen(); if (!(label instanceof JPanel) && locLabel.getX() < locComponent.getX() && locLabel.getY() >= locComponent.getY() && locLabel.getY() <= locComponent.getY() + component.getHeight() && !(label instanceof Filler)) { rowLeft.add(label); } } Collections.sort(rowLeft, new Comparator<Component>() { @Override public int compare(Component o1, Component o2) { Point locO1 = o1.getLocationOnScreen(); Point locO2 = o2.getLocationOnScreen(); return (int) (locO1.getX() - locO2.getX()); } }); if (rowLeft.size() > 0 && rowLeft.get(rowLeft.size() - 1) instanceof JLabel) { return stripLastColon(((JLabel) rowLeft.get(rowLeft.size() - 1)).getText().trim()); } return null; }
Example #15
Source File: javax_swing_Box_Filler.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #16
Source File: javax_swing_Box_Filler.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #17
Source File: javax_swing_Box_Filler.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected Filler getAnotherObject() { return null; // TODO: could not update property // return new Filler( // new Dimension(9, 8), // new Dimension(7, 6), // new Dimension(5, 4)); }
Example #18
Source File: javax_swing_Box_Filler.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #19
Source File: PClassCheckboxPanel.java From PolyGlot with MIT License | 4 votes |
private void createBottomSpacer() { gbc.weighty = 999; this.add(new Filler(new Dimension(0,0),new Dimension(999,999),new Dimension(9999,9999)), gbc); this.setPreferredSize(new Dimension(150, gbc.gridy * 20)); }
Example #20
Source File: javax_swing_Box_Filler.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #21
Source File: javax_swing_Box_Filler.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #22
Source File: javax_swing_Box_Filler.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #23
Source File: javax_swing_Box_Filler.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #24
Source File: javax_swing_Box_Filler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #25
Source File: javax_swing_Box_Filler.java From openjdk-8 with GNU General Public License v2.0 | 3 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #26
Source File: javax_swing_Box_Filler.java From openjdk-8-source with GNU General Public License v2.0 | 3 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #27
Source File: javax_swing_Box_Filler.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #28
Source File: javax_swing_Box_Filler.java From hottub with GNU General Public License v2.0 | 3 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #29
Source File: javax_swing_Box_Filler.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 3 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }
Example #30
Source File: javax_swing_Box_Filler.java From jdk8u-jdk with GNU General Public License v2.0 | 3 votes |
protected Filler getObject() { return new Filler( new Dimension(1, 2), new Dimension(3, 4), new Dimension(5, 6)); }