类javax.swing.Box.Filler源码实例Demo

下面列出了怎么用javax.swing.Box.Filler的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: dragonwell8_jdk   文件: javax_swing_Box_Filler.java
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));
}
 
源代码2 项目: TencentKona-8   文件: javax_swing_Box_Filler.java
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));
}
 
源代码3 项目: jdk8u60   文件: javax_swing_Box_Filler.java
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));
}
 
源代码4 项目: openjdk-jdk8u   文件: javax_swing_Box_Filler.java
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));
}
 
源代码5 项目: marathonv5   文件: JavaElementPropertyAccessor.java
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;
}
 
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));
}
 
源代码7 项目: openjdk-jdk9   文件: javax_swing_Box_Filler.java
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));
}
 
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);
}
 
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;
}
 
源代码10 项目: jdk8u-jdk   文件: javax_swing_Box_Filler.java
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));
}
 
源代码11 项目: hottub   文件: javax_swing_Box_Filler.java
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));
}
 
源代码12 项目: openjdk-8-source   文件: javax_swing_Box_Filler.java
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));
}
 
源代码13 项目: openjdk-8   文件: javax_swing_Box_Filler.java
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));
}
 
源代码14 项目: jdk8u_jdk   文件: javax_swing_Box_Filler.java
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));
}
 
源代码15 项目: jdk8u-jdk   文件: javax_swing_Box_Filler.java
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));
}
 
源代码16 项目: jdk8u-dev-jdk   文件: javax_swing_Box_Filler.java
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));
}
 
源代码17 项目: PolyGlot   文件: PClassCheckboxPanel.java
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++;
}
 
源代码18 项目: dragonwell8_jdk   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码19 项目: TencentKona-8   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码20 项目: jdk8u60   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码21 项目: openjdk-jdk8u   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码23 项目: openjdk-jdk9   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码24 项目: jdk8u-jdk   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码25 项目: hottub   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码26 项目: openjdk-8-source   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码27 项目: openjdk-8   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码28 项目: jdk8u_jdk   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码29 项目: jdk8u-jdk   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
源代码30 项目: jdk8u-dev-jdk   文件: javax_swing_Box_Filler.java
protected Filler getObject() {
    return new Filler(
            new Dimension(1, 2),
            new Dimension(3, 4),
            new Dimension(5, 6));
}
 
 类所在包
 同包方法