Package com.jgoodies.forms.builder

Examples of com.jgoodies.forms.builder.DefaultFormBuilder.appendSeparator()


    comboFlyoutCenter.putClientProperty(
        SubstanceLookAndFeel.COMBO_BOX_POPUP_FLYOUT_ORIENTATION,
        SwingConstants.CENTER);
    builder.append("Center", comboFlyoutCenter);

    builder.appendSeparator("Popup prototype");
    JComboBox comboProto1 = new JComboBox(new Object[] { "aa", "aaaaa",
        "aaaaaaaaaa", "this one is the one",
        "abcdefghijklmnopqrstuvwxyz" });
    comboProto1.setPrototypeDisplayValue("aaaaa");
    comboProto1.putClientProperty(
View Full Code Here


                jc.getModel().getSize() - 1);
          }
        });
    builder.append("Custom callback", comboProto3);

    builder.appendSeparator("Empty combos");
    JComboBox emptyModelCombo = new JComboBox(new String[] {});
    builder.append("Empty model", emptyModelCombo);

    JComboBox emptyStringCombo = new JComboBox(new String[] { "" });
    builder.append("Empty string", emptyStringCombo);
View Full Code Here

    rbLabel.setIcon(Check.getIcon("JRadioButtonColor16"));

    builderButtons.append(bLabel, tbLabel);
    builderButtons.append(cbLabel, rbLabel);

    builderButtons.appendSeparator("Regular settings");

    this.addButtonRow(builderButtons, "Enabled", null, null);
    this.addButtonRow(builderButtons, "Flat", null,
        new ClientPropertyCommand(SubstanceLookAndFeel.FLAT_PROPERTY,
            Boolean.TRUE));
View Full Code Here

            new SelectCommand());
    this.addButtonRow(builderButtons, "Disabled selected", null,
        new ChainCommand<Component>(new DisableCommand(),
            new SelectCommand()));

    builderButtons.appendSeparator("Background settings");
    this.addButtonRow(builderButtons, "Yellow", null,
        new BackgroundColorCommand(Color.yellow));
    this.addButtonRow(builderButtons, "Yellow flat", null,
        new ChainCommand<Component>(new BackgroundColorCommand(
            Color.yellow), new ClientPropertyCommand(
View Full Code Here

    this.addButtonRow(builderButtons, "Dark Green disabled selected", null,
        new ChainCommand<Component>(new BackgroundColorCommand(
            Color.green.darker()), new SelectCommand(),
            new DisableCommand()));

    builderButtons.appendSeparator("Foreground settings");
    this.addButtonRow(builderButtons, "Yellow", null,
        new ForegroundColorCommand(Color.yellow));
    this.addButtonRow(builderButtons, "Yellow disabled", null,
        new ChainCommand<Component>(new ForegroundColorCommand(
            Color.yellow), new DisableCommand()));
View Full Code Here

    this.addButtonRow(builderButtons, "Dark Green disabled selected", null,
        new ChainCommand<Component>(new ForegroundColorCommand(
            Color.green.darker()), new SelectCommand(),
            new DisableCommand()));

    builderButtons.appendSeparator("Combined settings");
    this.addButtonRow(builderButtons, "Blue/yellow", null,
        new ChainCommand<Component>(new ForegroundColorCommand(
            Color.blue), new BackgroundColorCommand(Color.yellow)));
    this.addButtonRow(builderButtons, "Blue/yellow disabled", null,
        new ChainCommand<Component>(new ForegroundColorCommand(
View Full Code Here

    builderOther.append("");
    builderOther.append(new JLabel("Yellow"), new JLabel(
        "Blue + red foreground"));
    builderOther.append(new JLabel("Green"), new JLabel("Dark green"));

    builderOther.appendSeparator("Labels");
    addControlRow(builderOther, "Regular",
        new CreationCommand<Component>() {
          public Component create() {
            return new JLabel("label");
          }
View Full Code Here

        return new JLabel(
            "<html>text <b>text</b> <font color='red'>text</font>");
      }
    }, null);

    builderOther.appendSeparator("Sliders");
    addControlRow(builderOther, "Regular",
        new CreationCommand<Component>() {
          public Component create() {
            return new JSlider(0, 100, 50);
          }
View Full Code Here

          public Component create() {
            return new JSlider(0, 100, 50);
          }
        }, new DisableCommand());

    builderOther.appendSeparator("Progress bars");
    addControlRow(builderOther, "Regular",
        new CreationCommand<Component>() {
          public Component create() {
            JProgressBar jpb = new JProgressBar(0, 100);
            jpb.setIndeterminate(false);
View Full Code Here

            jpb.setIndeterminate(true);
            return jpb;
          }
        }, new DisableCommand());

    builderOther.appendSeparator("Combo boxes");
    addControlRow(builderOther, "Regular",
        new CreationCommand<Component>() {
          public Component create() {
            JComboBox jcb = new JComboBox(new Object[] { "Ester",
                "Jordi", "Jordina", "Jorge", "Sergi" });
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.