Package java.awt

Examples of java.awt.TextArea$TextScrollable


      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


      tmpuser = ipmsg.makeListStr(ipmce.getPack());
    else
      tmpuser = ipme.getPack().getUser();
    user = new Label(Cp932.toCp932(tmpuser));
    p1.add(user);
    body = new TextArea();
    body.setEditable(false);
    body.setText(Cp932.toCp932(ipme.getPack().getExtra()));
    add("Center", body);
    Panel p2 = new Panel(new BorderLayout());
    add("South", p2);
View Full Code Here

      for (int i = 0; i < users.length; i++)
        choice.add(
          Cp932.toCp932(ipmsg.makeListStr(users[i].getPack())));
      p1.add(choice);
    }
    body = new TextArea();
    add("Center", body);
    Panel p2 = new Panel(new FlowLayout(FlowLayout.CENTER));
    add("South", p2);
    Button send = new Button(ipmsg.getPref("sendLabel"));
    send.addActionListener(new ActionListener() {
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

            }
        });

        tabPane.setLayout(new BorderLayout(7, 7));

        final TextArea textArea = new TextArea("", 60, 110, TextArea.SCROLLBARS_BOTH);
        textArea.setForeground(Color.black);
        textArea.setEditable(false);
        // Font font = Isis.getConfiguration().getFont("isis.debug.font", new
        // Font("Monospaced", Font.PLAIN, 10));
        final Font font = new Font("Monospaced", Font.PLAIN, 11);
        textArea.setFont(font);
        tabPane.add("Center", textArea);
        field = textArea;

        final Panel buttons = new Panel();
        buttons.setLayout(new FlowLayout());
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

      Component[] layout = {
      new Label(name),new Label(""),
      new Label("Version"),new Label(version),
      new Label("Visit"),new Label(project.getUrl()),
      new Label("Author"),new Label(developers.toString()),
      new Label("Disclaimer of Warranty"),new TextArea(DISCLAIMER_EN, 6, 30),
      new Label("Licences"),new Label(""),
      new Label(name),new TextArea(LICENCE),
      new Label(""),new TextArea(PomUtils.getThirdPartyLicences())
      };
      Panel result = new Panel();
      result.setLayout(new GridLayout(layout.length/2, 2));
      for (Component comp: layout){
        result.add(comp);
View Full Code Here

    //DO NOT call this directly, go through Sysout
    public TestDialog( Frame frame, String name )
    {
        super( frame, name );
        int scrollBoth = TextArea.SCROLLBARS_BOTH;
        instructionsText = new TextArea( "", 15, maxStringLength, scrollBoth );
        add( "North", instructionsText );

        messageText = new TextArea( "", 5, maxStringLength, scrollBoth );
        add("Center", messageText);

        pack();

        setVisible(true);
View Full Code Here

        panel.setLayout( new GridLayout(3,3) );

        for( int y=0; y<3; ++y ) {
            for( int x=0; x<3; ++x ) {
                if( x==1 && y==1 ) {
                    panel.add( new TextArea( bigString() ) );
                } else {
                    panel.add( new Panel() );
                }
            }
        }
View Full Code Here

    //DO NOT call this directly, go through Sysout
    public TestDialog( Frame frame, String name )
    {
        super( frame, name );
        int scrollBoth = TextArea.SCROLLBARS_BOTH;
        instructionsText = new TextArea( "", 15, maxStringLength, scrollBoth );
        add( "North", instructionsText );

        messageText = new TextArea( "", 5, maxStringLength, scrollBoth );
        add("Center", messageText);

        pack();

        setVisible(true);
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.