Package org.pushingpixels.substance.api.combo

Examples of org.pushingpixels.substance.api.combo.WidestComboPopupPrototype


    comboProto2.setPrototypeDisplayValue("aaaaa");
    // set popup prototype as widest value (core implementation of
    // ComboPopupPrototypeCallback interface)
    comboProto2.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new WidestComboPopupPrototype());
    panel2.add(new JLabel("Widest core callback"));
    panel2.add(comboProto2);
    this.add(panel2);

    JPanel panel3 = new JPanel(new FlowLayout());
View Full Code Here


        "aaaaaaaaaa", "another one (not it)",
        "abcdefghijklmnopqrstuvwxyz" });
    comboProto2.setPrototypeDisplayValue("aaaaa");
    comboProto2.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new WidestComboPopupPrototype());
    builder.append("Widest core callback", comboProto2);

    JComboBox comboProto3 = new JComboBox(new Object[] { "aa", "aaaaa",
        "this is not", "this one is not it",
        "this one is it that is for the popup" });
View Full Code Here

        "single", "single interval", "multiple interval" });
    selectionModelCb.setSelectedIndex(0);
    list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    selectionModelCb.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new WidestComboPopupPrototype());
    selectionModelCb.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            String selected = (String) selectionModelCb
View Full Code Here

    comboProto2.setPrototypeDisplayValue("aaaaa");
    // set popup prototype as widest value (core implementation of
    // ComboPopupPrototypeCallback interface)
    comboProto2.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new WidestComboPopupPrototype());
    panel2.add(new JLabel("Widest core callback"));
    panel2.add(comboProto2);
    this.add(panel2);

    JPanel panel3 = new JPanel(new FlowLayout());
View Full Code Here

        "single", "single interval", "multiple interval" });
    selectionModelCb.setSelectedIndex(0);
    list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    selectionModelCb.putClientProperty(
        SubstanceLookAndFeel.COMBO_POPUP_PROTOTYPE,
        new WidestComboPopupPrototype());
    selectionModelCb.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            String selected = (String) selectionModelCb
View Full Code Here

TOP

Related Classes of org.pushingpixels.substance.api.combo.WidestComboPopupPrototype

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.