Package java.awt

Examples of java.awt.Label$AccessibleAWTLabel


  protected Panel createCounterPanel() {
    Panel numbersPanel= new Panel(new GridBagLayout());
    addToCounterPanel(
      numbersPanel,
      new Label("Runs:"),
      0, 0, 1, 1, 0.0, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.NONE,
            new Insets(0, 0, 0, 0)
    )
    addToCounterPanel(
      numbersPanel,
      fNumberOfRuns,
            1, 0, 1, 1, 0.33, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
            new Insets(0, 8, 0, 40)
    );
    addToCounterPanel(
      numbersPanel,
      new Label("Errors:"),
            2, 0, 1, 1, 0.0, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.NONE,
            new Insets(0, 8, 0, 0)
    );
    addToCounterPanel(
      numbersPanel,
      fNumberOfErrors,
            3, 0, 1, 1, 0.33, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.HORIZONTAL,
            new Insets(0, 8, 0, 40)
    );
    addToCounterPanel(
      numbersPanel,
      new Label("Failures:"),
            4, 0, 1, 1, 0.0, 0.0,
            GridBagConstraints.CENTER, GridBagConstraints.NONE,
            new Insets(0, 8, 0, 0)
    )
    addToCounterPanel(
View Full Code Here


      frame = this; // Make visible to ButtonHandler
      setSize(320,200);

      // Create a panel for the message itself
      Panel center = new Panel();
      center.add(new Label(message));

      // Create a panel for the 'OK' button
      Panel bottom = new Panel();
      Button okButton = new Button("   OK   ");
      okButton.addActionListener(new ButtonHandler());
View Full Code Here

      setLayout(layout = new GridBagLayout());
      constr = new GridBagConstraints();

      constr.gridwidth = GridBagConstraints.REMAINDER;
      constr.anchor = GridBagConstraints.WEST;
      add(new Label("The server would like to set the following cookie:"), constr);

      Panel p = new Panel();
      left_panel = new Panel();
      left_panel.setLayout(new GridLayout(4, 1));
      left_panel.add(new Label("Name=Value:"));
      left_panel.add(new Label("Domain:"));
      left_panel.add(new Label("Path:"));
      left_panel.add(new Label("Expires:"));
      ports_label = new Label("Ports:");
      p.add(left_panel);

      right_panel = new Panel();
      right_panel.setLayout(new GridLayout(4, 1));
      right_panel.add(name_value_label = new Label());
      right_panel.add(domain_value = new Label());
      right_panel.add(path_value = new Label());
      right_panel.add(expires_value = new Label());
      ports_value = new Label();
      p.add(right_panel);
      add(p, constr);
      secure_note = new Label("This cookie will only be sent over secure connections");
      discard_note = new Label("This cookie will be discarded at the end of the session");
      c_url_note = new Label("");
      comment_label = new Label("Comment:");
      comment_value = new TextArea("", 3, 45, TextArea.SCROLLBARS_VERTICAL_ONLY);
      comment_value.setEditable(false);

      add(new Panel(), constr);

      constr.gridwidth = 1;
      constr.anchor = GridBagConstraints.CENTER;
      constr.weightx = 1.0;
      add(default_focus = new Button("Accept"), constr);
      default_focus.addActionListener(new Accept());

      Button b;
      constr.gridwidth = GridBagConstraints.REMAINDER;
      add(b = new Button("Reject"), constr);
      b.addActionListener(new Reject());

      constr.weightx = 0.0;
      p = new Separator();
      constr.fill = GridBagConstraints.HORIZONTAL;
      add(p, constr);

      constr.fill = GridBagConstraints.NONE;
      constr.anchor = GridBagConstraints.WEST;
      add(new Label("Accept/Reject all cookies from a host or domain:"), constr);

      p = new Panel();
      p.add(new Label("Host/Domain:"));
      p.add(domain = new TextField(30));
      add(p, constr);

      add(new Label("domains are characterized by a leading dot (`.');"), constr);
      add(new Label("an empty string matches all hosts"), constr);

      constr.anchor = GridBagConstraints.CENTER;
      constr.gridwidth = 1;
      constr.weightx = 1.0;
      add(b = new Button("Accept All"), constr);
View Full Code Here

         addNotify();
         addWindowListener(new Close());
         setLayout(new BorderLayout());

         Panel p = new Panel(new GridLayout(3, 1));
         p.add(line1 = new Label());
         p.add(line2 = new Label());
         p.add(line3 = new Label());
         add("North", p);

         p = new Panel(new GridLayout(2, 1));
         p.add(new Label("Username:"));
         p.add(new Label("Password:"));
         add("West", p);
         p = new Panel(new GridLayout(2, 1));
         p.add(user = new TextField(30));
         p.add(pass = new TextField(30));
         pass.addActionListener(new Ok());
View Full Code Here

     * @return java.awt.Label
     */
    private Label getAboutContactLabel() {
        if (iAboutContactLabel == null) {
            try {
                iAboutContactLabel = new Label();
                iAboutContactLabel.setName("AboutContactLabel");
                iAboutContactLabel.setAlignment(java.awt.Label.CENTER);
                iAboutContactLabel.setText("contact: wolf.siberski@tui.de or christoph.wilhelms@tui.de");
            } catch (Throwable iExc) {
                handleException(iExc);
View Full Code Here

     * @return java.awt.Label
     */
    private Label getAboutDevLabel() {
        if (iAboutDevLabel == null) {
            try {
                iAboutDevLabel = new Label();
                iAboutDevLabel.setName("AboutDevLabel");
                iAboutDevLabel.setAlignment(java.awt.Label.CENTER);
                iAboutDevLabel.setText("developed by Wolf Siberski & Christoph Wilhelms");
            } catch (Throwable iExc) {
                handleException(iExc);
View Full Code Here

     * @return java.awt.Label
     */
    private Label getAboutTitleLabel() {
        if (iAboutTitleLabel == null) {
            try {
                iAboutTitleLabel = new Label();
                iAboutTitleLabel.setName("AboutTitleLabel");
                iAboutTitleLabel.setFont(new Font("Arial", 1, 12));
                iAboutTitleLabel.setAlignment(Label.CENTER);
                iAboutTitleLabel.setText("Ant VisualAge for Java Tool-Integration");
            } catch (Throwable iExc) {
View Full Code Here

     * @return java.awt.Label
     */
    private Label getBuildFileLabel() {
        if (iBuildFileLabel == null) {
            try {
                iBuildFileLabel = new Label();
                iBuildFileLabel.setName("BuildFileLabel");
                iBuildFileLabel.setText("Ant-Buildfile:");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Label
     */
    private Label getMessageOutputLevelLabel() {
        if (iMessageOutputLevelLabel == null) {
            try {
                iMessageOutputLevelLabel = new Label();
                iMessageOutputLevelLabel.setName("MessageOutputLevelLabel");
                iMessageOutputLevelLabel.setText("Message Level:");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Label
     */
    private Label getProjectLabel() {
        if (iProjectLabel == null) {
            try {
                iProjectLabel = new Label();
                iProjectLabel.setName("ProjectLabel");
                iProjectLabel.setText("Projectname:");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

TOP

Related Classes of java.awt.Label$AccessibleAWTLabel

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.