Package java.awt

Examples of java.awt.TextArea$TextScrollable


   * Convenience function to add a message box to the window which can be used
   * to output debug information.
   */
  public void addMessageBox() {
    if (ta == null) {
      ta = new TextArea();
      ta.setEditable(false);
      getContentPane().add(ta, BorderLayout.SOUTH);
    }
    // We need to make the window bigger to accomodate the message box.
    winSizeY += DEF_MESSAGEBOX_HEIGHT;
View Full Code Here


 
  public UInterface(Client s) {
   
    this.setLayout(new FlowLayout());
   
    this.text = new TextArea(10, 60);
    this.text.setEditable(false);
    this.text.setForeground(Color.red);
    this.add(this.text);
   
    this.data = new TextField(60);
View Full Code Here

        // TODO Auto-generated constructor stub
    }

    public Object createComponentInstance(Object parent, DomNode element)
    {
        TextArea txtArea = new TextArea();
        return txtArea;
    }
View Full Code Here

    );

    Panel failedPanel= new Panel(new GridLayout(0, 1, 0, 2));
    failedPanel.add(fRerunButton);

    fTraceArea= new TextArea();
    fTraceArea.setRows(5);
    fTraceArea.setColumns(60);

    //---- fifth section
    fStatusLine= new TextField();
View Full Code Here

      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;
View Full Code Here

        setLayout(new BorderLayout());
        setBounds(0, 200, 800, 400);
    }

    public void show(final String message, final String text) {
        final TextArea messagePanel = new TextArea();
        messagePanel.setText(message + "\n\n" + text);
        messagePanel.setForeground(Color.black);
        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));
View Full Code Here

        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");
View Full Code Here

     * @return java.awt.TextArea
     */
    private TextArea getMessageTextArea() {
        if (iMessageTextArea == null) {
            try {
                iMessageTextArea = new TextArea();
                iMessageTextArea.setName("MessageTextArea");
                iMessageTextArea.setFont(new Font("monospaced", 0, 12));
                iMessageTextArea.setText("");
                iMessageTextArea.setEditable(false);
                iMessageTextArea.setEnabled(true);
View Full Code Here

          + wantedMinor + "." + wantedBugFix
          + " or later to run this Applet.\n"
          + "You are currently running under Java "
          + System.getProperty("java.version") + ".\n"
          + "Get the latest Java from http://java.com/en/index.jsp";
      TextArea complain = new TextArea(error, 3, 42,
          TextArea.SCROLLBARS_NONE);

      complain.setEditable(false);
      complain.setBackground(Color.white);
      complain.setForeground(Color.red);
      complain.setSize(300, 50);
      container.setLayout(null);
      container.add(complain);
      System.err.println(error);
      return false;
    }
View Full Code Here

    /**
     * LogWindow constructor comment.
     */
    private void buildGUI() {
        add(log = new TextArea());
        addButtons();
        final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
        final Dimension frameSize = new Dimension();
        final Insets insets = getInsets();

View Full Code Here

TOP

Related Classes of java.awt.TextArea$TextScrollable

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.