Package java.awt

Examples of java.awt.TextArea$TextScrollable


    public MiniReportDisplay(Frame parent, String sReport) {
        super(parent, Messages.getString("MiniReportDisplay.title"), true); //$NON-NLS-1$

        butOkay = new Button(Messages.getString("Okay")); //$NON-NLS-1$
        butOkay.addActionListener(this);
        taData = new TextArea(sReport, 20, 48);
        taData.setEditable(false);

        setLayout(new BorderLayout());

        add(BorderLayout.SOUTH, butOkay);
View Full Code Here


        c.gridwidth = 1;
        c.gridheight = 1;
        c.gridx = 0;

        // Display the question in a scrollable, uneditable area.
        TextArea message = new TextArea(question, 5, 50,
                TextArea.SCROLLBARS_VERTICAL_ONLY);
        message.setEditable(false);

        c.gridy = 0;
        c.insets = new Insets(0, 5, 0, 5);
        add(message, c);
View Full Code Here

            }
        });

        history = new LinkedList<String>();

        chatArea = new TextArea(
                " \n", GUIPreferences.getInstance().getInt("AdvancedChatboxSize"), 40, TextArea.SCROLLBARS_VERTICAL_ONLY); //$NON-NLS-1$
        chatArea.setEditable(false);
        playerList = new List(GUIPreferences.getInstance().getInt(
                "AdvancedChatboxSize"));
        inputField = new TextField();
View Full Code Here

            c.gridwidth = GridBagConstraints.REMAINDER;
            ((GridBagLayout) getLayout()).setConstraints(wToHitR, c);
            add(wToHitR);

            // to-hit text
            toHitText = new TextArea(
                    "", 2, 20, TextArea.SCROLLBARS_VERTICAL_ONLY); //$NON-NLS-1$
            toHitText.setEditable(false);
            toHitText.addKeyListener(client.menuBar);

            c.insets = new Insets(1, 9, 15, 9);
View Full Code Here

            // transport stuff
            // unusedL = new Label( "Unused Space:", Label.CENTER );

            unusedL = new TransparentLabel(
                    Messages.getString("MechDisplay.UnusedSpace"), fm, Color.white, TransparentLabel.CENTER); //$NON-NLS-1$
            unusedR = new TextArea("", 2, 25, TextArea.SCROLLBARS_VERTICAL_ONLY); //$NON-NLS-1$
            unusedR.setEditable(false);
            unusedR.addKeyListener(clientgui.menuBar);

            carrysL = new TransparentLabel(
                    Messages.getString("MechDisplay.Carryng"), fm, Color.white, TransparentLabel.CENTER); //$NON-NLS-1$
            carrysR = new TextArea("", 4, 25, TextArea.SCROLLBARS_VERTICAL_ONLY); //$NON-NLS-1$
            carrysR.setEditable(false);
            carrysR.addKeyListener(clientgui.menuBar);

            sinksL = new TransparentLabel(Messages
                    .getString("MechDisplay.activeSinksLabel"), fm,
                    Color.white, TransparentLabel.CENTER);
            sinksR = new TextArea("", 2, 25, TextArea.SCROLLBARS_VERTICAL_ONLY);
            sinksR.setEditable(false);
            sinksR.addKeyListener(clientgui.menuBar);

            sinks2B = new Button(Messages
                    .getString("MechDisplay.configureActiveSinksLabel"));
            sinks2B.setActionCommand("changeSinks");
            sinks2B.addActionListener(this);

            heatL = new TransparentLabel(
                    Messages.getString("MechDisplay.HeatEffects"), fm, Color.white, TransparentLabel.CENTER); //$NON-NLS-1$
            heatR = new TextArea("", 4, 25, TextArea.SCROLLBARS_VERTICAL_ONLY); //$NON-NLS-1$
            heatR.setEditable(false);
            heatR.addKeyListener(clientgui.menuBar);

            targSysL = new TransparentLabel((Messages
                    .getString("MechDisplay.TargSysLabel")).concat(" "), fm,
View Full Code Here

    panel_8.setBackground(new Color(250,255,250));
    panel_8.setBounds(39, 58, 673, 409);
    panel_7.add(panel_8);
    panel_8.setLayout(null);
   
    final TextArea textArea = new TextArea();
    textArea.setBounds(35, 40, 512, 268);
    panel_8.add(textArea);
    textField = new JTextField();
    textField.addKeyListener(new KeyAdapter() {
      @Override
      public void keyPressed(KeyEvent e) {
        String t;
        Date date = new Date();
        t=date.toString();
        if (e.getKeyCode() == KeyEvent.VK_ENTER)
        {
        textArea.setText(textArea.getText()+ " " + "\n\n" + t);
        textArea.setText(textArea.getText()+ " " + "\n" + textField.getText());
        textField.setText("");
        }
      }
    });
   
    textField.setBounds(55, 341, 466, 22);
    panel_8.add(textField);
    textField.setColumns(10);
   
    JButton btnNewButton = new JButton("Send");
    btnNewButton.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        String t;
        Date date = new Date();
        t=date.toString();
        textArea.setText(textArea.getText()+ " " + "\n\n" + t);
        textArea.setText(textArea.getText()+ " " + "\n" + textField.getText());
        textField.setText("");
      }
    });
    btnNewButton.setBounds(548, 340, 73, 23);
    panel_8.add(btnNewButton);
View Full Code Here

                                     textBoxWidth);
                this.text.addKeyListener(this);
                this.text.setSelectionStart(0);
                this.text.setSelectionEnd(Integer.MAX_VALUE);
            } else {
                this.text = new TextArea(textBox,
                                         textBoxHeight,
                                         textBoxWidth);
            }
            this.add(this.text, BorderLayout.CENTER);
            this.text.selectAll();
View Full Code Here

                this.text = new TextField(textBox,
                                     textBoxWidth);
                this.text.setSelectionStart(0);
                this.text.setSelectionEnd(Integer.MAX_VALUE);
            } else {
                this.text = new TextArea(textBox,
                                         textBoxHeight,
                                         textBoxWidth);
            }
            this.add(this.text, BorderLayout.CENTER);
        }
View Full Code Here

                this.text = new TextField(textBox,
                                     textBoxWidth);
                this.text.setSelectionStart(0);
                this.text.setSelectionEnd(Integer.MAX_VALUE);
            } else {
                this.text = new TextArea(textBox,
                                         textBoxHeight,
                                         textBoxWidth);
            }
            this.add(this.text, BorderLayout.CENTER);
        }
View Full Code Here

    content2_1.setLayout(new BorderLayout());
    labelChat= new Label();
    labelChat.setText("Chat:");
    content2_1.add(labelChat, BorderLayout.NORTH);
   
    outputarea = new TextArea(30,30);
    outputarea.setEditable(false);
    content2_1.add(outputarea, BorderLayout.SOUTH);
    content2.add(content2_1, BorderLayout.NORTH);
    //End of the chat panel.
   
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.