Package java.awt

Examples of java.awt.TextArea


                setLayout(new BorderLayout(10, 20));

                //Panel for Report Contents
                Panel textPanel = new Panel(new BorderLayout());
                TextArea reportTextArea = new TextArea();
                String contents = "";
                try {
                        contents = loadData();
                } catch (DataAccessException ex) {
                        Logger.getLogger(ViewReportPanel.class.getName()).log(Level.SEVERE, null, ex);
                }
                reportTextArea.setEditable(false);
                reportTextArea.setText(contents);               
                textPanel.add(reportTextArea, BorderLayout.CENTER);
                add(textPanel, BorderLayout.CENTER);

                //debugging purpose
                Logger.getLogger(ViewReportPanel.class.getName()).log(Level.INFO, reportTextArea.getText());

                //Button Print
                Panel southPanel = new Panel(new FlowLayout(FlowLayout.CENTER));
                Button btnPrint = new Button(" Print Report ");
                btnPrint.addActionListener(new ActionListener() {
View Full Code Here


                setLayout(new BorderLayout(10, 20));

                //Panel for Report Contents
                Panel textPanel = new Panel(new BorderLayout());
                TextArea reportTextArea = new TextArea();
                String contents = "";
                try {
                        contents = loadData();
                } catch (DataAccessException ex) {
                        Logger.getLogger(ViewReportPanel.class.getName()).log(Level.SEVERE, null, ex);
                }
                reportTextArea.setEditable(false);
                reportTextArea.setText(contents);
                textPanel.add(reportTextArea, BorderLayout.CENTER);
                add(textPanel, BorderLayout.CENTER);

                //Button Print
                Panel southPanel = new Panel(new FlowLayout(FlowLayout.CENTER));
View Full Code Here

    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    setLocation( (d.width - getSize().width ) / 2,
                (d.height- getSize().height) / 2 );
    setVisible(false);
    addWindowListener(this);
    TextArea ta = new TextArea();
    ta.setText("Hallo dieses ist das Spiel W�rfelfeld oder Dice-Field. \n" +
             "Version 0.1\n" +
             "(Neue Versionen gibt es unter http://sourceforge.net/projects/dice-field/)\n" +
           "\n" +
           "Copyleft Achim von Lowtzow 2004-2009\n" +
           "\n" +
View Full Code Here

    private void message(String mesg) {
        System.out.println(mesg);
    }

    private void createGUI() {
        TextArea textBox = new TextArea(5, 50);
        add("Center", textBox);
        textBox.setEditable(false);
        addNotify();
        pack();

        int scrWidth = (int) java.awt.Toolkit.getDefaultToolkit().getScreenSize()
                .getWidth();
View Full Code Here

    private void message(String mesg) {
        LOGGER.debug(mesg);
    }

    private void createGUI() {
        TextArea textBox = new TextArea(5, 50);
        add("Center", textBox);
        textBox.setEditable(false);
        addNotify();
        pack();

        int scrWidth = (int) Toolkit.getDefaultToolkit().getScreenSize()
                .getWidth();
View Full Code Here

     * Initialise the applet the first time it runs.
     */
    public void init() {
        startButton = new Button("Parse " + getParameter("url"));
        isApplet = true;
        textArea = new TextArea();
        buttonPanel = new Panel();
        buttonPanel.setLayout(new FlowLayout());
        setLayout(new BorderLayout());
        buttonPanel.add("Center", startButton);
        add("Center", textArea);
View Full Code Here

public class test {

      public static void main(String[] args) {
        Frame frame=new Frame("USE - User Profile Service Engine");
        TextArea textArea=new TextArea("Welcome Roseindia",10,20);
        frame.add(textArea);
        frame.setLayout(new FlowLayout());
        frame.setSize(250,250);
        frame.setVisible(true);
        frame.addWindowListener(new WindowAdapter(){
        public void windowClosing(WindowEvent e){
        System.exit(0);
        }
        });
        textArea.append("w t f");
      }
View Full Code Here

        btnAceptar = new Button("Aceptar");
        btnCancelar = new Button("Cancelar");
        listArchivos = new List(2, false);
        prevPantalla = new Preview();
        txtTitulo = new TextField("Sin t\355tulo");
        txtDesc = new TextArea("Sin descripci\363n");
        lArchivos = new Label("Se\361ales:");
        lTitulo = new Label("T\355tulo:");
        lDesc = new Label("Descripci\363n:");
        add(btnAceptar);
        add(btnCancelar);
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

 
  /**
   * The constructor defines the layout.
   */
  public addOn_systemMessageFrame() {
    system = new TextArea(30,30);
    system.setEditable(false);
    add(system);
    frame = this;
  }
View Full Code Here

TOP

Related Classes of java.awt.TextArea

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.