Package java.awt

Examples of java.awt.Panel$AccessibleAWTPanel


  frame_1_grid.rowHeights = frame_1_rowHeights;
  frame_1_grid.columnWidths = frame_1_columnWidths;
  frame_1_grid.rowWeights = frame_1_rowWeights;
  frame_1_grid.columnWeights = frame_1_columnWeights;

  frame_1 = new Panel();
  this.add(frame_1);
 
  ok = new Button();
  ok.setLabel("OK");
  frame_1.add(ok);
View Full Code Here


      super(title);
      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());
      bottom.add(okButton);
     
      // Add the two panels to the window/frame
      add(center, BorderLayout.CENTER);
      add(bottom,BorderLayout.SOUTH);
View Full Code Here

      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);
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());
         pass.setEchoChar('*');
         add("East", p);

         GridBagLayout gb = new GridBagLayout();
         p = new Panel(gb);
         GridBagConstraints constr = new GridBagConstraints();
         Panel pp = new Panel();
         p.add(pp);
         constr.gridwidth = GridBagConstraints.REMAINDER;
         gb.setConstraints(pp, constr);
         constr.gridwidth = 1;
         constr.weightx = 1.0;
View Full Code Here

        messagePanel.setEditable(false);
        messagePanel.setFont(new Font("Dialog", Font.PLAIN, 9));

        add(messagePanel, BorderLayout.CENTER);

        final Panel buttonPanel = new Panel();
        buttonPanel.setLayout(new FlowLayout(FlowLayout.CENTER, 20, 0));
        add(buttonPanel, BorderLayout.SOUTH);

        final Button ok = new Button("Close");
        ok.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                ok(true);
            }
        });
        buttonPanel.add(ok);

        /*
         * Button cancel = new Button("Save and Close"); cancel
         * .addActionListener(new ActionListener() { public void
         * actionPerformed(final ActionEvent e) { ok(false); } });
View Full Code Here

     * Method declaration
     *
     */
    private void initGUI() {

        Panel pQuery   = new Panel();
        Panel pCommand = new Panel();

        pResult = new Panel();

        pQuery.setLayout(new BorderLayout());
        pCommand.setLayout(new BorderLayout());
        pResult.setLayout(new BorderLayout());

        Font fFont = new Font("Dialog", Font.PLAIN, 12);

        txtCommand = new TextArea(5, 40);

        txtCommand.addKeyListener(this);

        txtResult = new TextArea(20, 40);

        txtCommand.setFont(fFont);
        txtResult.setFont(new Font("Courier", Font.PLAIN, 12));

        butExecute = new Button("Execute");
        butClear   = new Button("Clear");

        butExecute.addActionListener(this);
        butClear.addActionListener(this);
        pCommand.add("East", butExecute);
        pCommand.add("West", butClear);
        pCommand.add("Center", txtCommand);

        gResult = new Grid();

        setLayout(new BorderLayout());
        pResult.add("Center", gResult);
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getAboutCommandPanel() {
        if (iAboutCommandPanel == null) {
            try {
                iAboutCommandPanel = new Panel();
                iAboutCommandPanel.setName("AboutCommandPanel");
                iAboutCommandPanel.setLayout(new java.awt.FlowLayout());
                getAboutCommandPanel().add(getAboutOkButton(), getAboutOkButton().getName());
            } catch (Throwable iExc) {
                handleException(iExc);
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getAboutDialogContentPanel() {
        if (iAboutDialogContentPanel == null) {
            try {
                iAboutDialogContentPanel = new Panel();
                iAboutDialogContentPanel.setName("AboutDialogContentPanel");
                iAboutDialogContentPanel.setLayout(new java.awt.BorderLayout());
                getAboutDialogContentPanel().add(getAboutCommandPanel(), "South");
                getAboutDialogContentPanel().add(getAboutInfoPanel(), "Center");
            } catch (Throwable iExc) {
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getAboutInfoPanel() {
        if (iAboutInfoPanel == null) {
            try {
                iAboutInfoPanel = new Panel();
                iAboutInfoPanel.setName("AboutInfoPanel");
                iAboutInfoPanel.setLayout(new GridBagLayout());

                GridBagConstraints constraintsAboutTitleLabel = new GridBagConstraints();
                constraintsAboutTitleLabel.gridx = 0; constraintsAboutTitleLabel.gridy = 0;
View Full Code Here

     * @return java.awt.Panel
     */
    private Panel getCommandButtonPanel() {
        if (iCommandButtonPanel == null) {
            try {
                iCommandButtonPanel = new Panel();
                iCommandButtonPanel.setName("CommandButtonPanel");
                iCommandButtonPanel.setLayout(getCommandButtonPanelFlowLayout());
                iCommandButtonPanel.setBackground(SystemColor.control);
                iCommandButtonPanel.add(getReloadButton());
                iCommandButtonPanel.add(getBuildButton());
View Full Code Here

TOP

Related Classes of java.awt.Panel$AccessibleAWTPanel

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.