Package java.awt

Examples of java.awt.Label$AccessibleAWTLabel


     * @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

     * @return java.awt.Label
     */
    private Label getProjectText() {
        if (iProjectText == null) {
            try {
                iProjectText = new Label();
                iProjectText.setName("ProjectText");
                iProjectText.setText(" ");
            } catch (Throwable iExc) {
                handleException(iExc);
            }
View Full Code Here

     * @return java.awt.Label
     */
    private Label getTargetLabel() {
        if (iTargetLabel == null) {
            try {
                iTargetLabel = new Label();
                iTargetLabel.setName("TargetLabel");
                iTargetLabel.setText("Target:");
                iTargetLabel.setEnabled(true);
            } catch (Throwable iExc) {
                handleException(iExc);
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

         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

      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

                }
            });

            Panel pan = new Panel();

            final Label l = new Label("Pithy Message:");
            l.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            pan.add(l);

            TextField tf = new TextField("Hello world!");
            pan.add(tf);
            add(pan, "North");

            final Image img;
            URL imageurl;
            imageurl = this.getClass().getResource(
                "/gnu/classpath/examples/icons/big-warning.png");
            img = Toolkit.getDefaultToolkit().createImage(imageurl);

            final Canvas ch = new Canvas() {
                public void paint(Graphics g) {
                    g.drawImage(img, xs + 25, ys + 25, this);

                    Font font = new Font("Serif", Font.PLAIN, 18);
                    g.setFont(font);
                    g.setXORMode(Color.red);

                    g.drawString("Hi Red!", xs + 15, ys + 10);
                    g.setColor(Color.blue);
                    g.drawLine(xs, ys, xs + 100, ys + 100);

                }
            };
            ch.setSize(150, 150);
            add(ch, "Center");

            final ScrollPane sp = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
            final Panel p = new Panel();
            p.add(new Button("Stop"));
            p.add(new Button("evil"));
            p.add(new Button("hoarders"));
            p.add(new Button("use"));
            p.add(new Button("GNU!"));

            sp.add(p);
            add(sp, "South");

            Panel east_panel = new Panel();
            east_panel.setLayout(new GridLayout(0, 1));

            CheckboxGroup group = new CheckboxGroup();
            Checkbox cb = new Checkbox("one", group, true);
            east_panel.add(cb);
            cb = new Checkbox("two", group, false);
            east_panel.add(cb);

            add(east_panel, "East");

            final Button wb = new Button();
            wb.setLabel("Hello World!");
            wb.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    l.setText("Hello World!");

                    final Dialog d = new Dialog(parent);
                    d.setLayout(new FlowLayout());
                    d.setModal(true);
                    Button b = new Button("foobar");
View Full Code Here

            mb.setHelpMenu(helpMenu);

            setMenuBar(mb);

            String version = System.getProperty("gnu.classpath.version");
            add(new Label("GNU Classpath " + version), "North");

            closeButton = new Button("Close");
            closeButton.addActionListener(this);
            closeButton.setFont(new Font("Serif", Font.BOLD | Font.ITALIC, 18));
            add(closeButton, "South");
View Full Code Here

                init();
            super.setVisible(visible);
        }

        public void init() {
            text = new Label("Dialog Test");
            text.setAlignment(Label.CENTER);

            add(text, "North");
            text.setVisible(false);
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.