Package com.scriptographer.adm

Examples of com.scriptographer.adm.Button


    // Create row of buttons
    ItemGroup buttons = new ItemGroup(this);
    buttons.setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    buttons.setMarginTop(8);

    Button cancelButton = new Button(this);
    cancelButton.setText("Cancel");
    cancelButton.setMarginRight(4);
    buttons.addToContent(cancelButton);

    Button okButton = new Button(this);
    okButton.setText("  OK  ");
    buttons.addToContent(okButton);
   
    // Add one more row for the buttons to the layout.
    TableLayout layout =
        AdmPaletteProxy.createLayout(this, components, true, 1, 5);
View Full Code Here


    text.setMinimumSize(240, -1);
    text.setText(message);
    text.setMarginBottom(8);
    addToContent(text, "1, 0, 2, 0, L, C");

    Button okButton = new Button(this);
    okButton.setText("  OK  ");
    addToContent(okButton, "1, 1, R, T");

    setDefaultItem(okButton);
  }
View Full Code Here

    text.setMinimumSize(240, -1);
    text.setText(message);
    text.setMarginBottom(8);
    this.addToContent(text, "1, 0, 3, 0, L, C");
   
    Button cancelButton = new Button(this);
    cancelButton.setText("Cancel");
    cancelButton.setMarginRight(10);
    this.addToContent(cancelButton, "1, 1, R, T");
   
    Button okButton = new Button(this);
    okButton.setText("  OK  ");
    this.addToContent(okButton, "3, 1, R, T");

    this.setDefaultItem(okButton);
    this.setCancelItem(cancelButton);
  }
View Full Code Here

        }
      };
    }
    break;
    case BUTTON: {
      item = new Button(dialog) {
        protected void onClick() {
          AdmComponentProxy.this.onClick();
        }
      };
    }
View Full Code Here

TOP

Related Classes of com.scriptographer.adm.Button

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.