Examples of ScrollingTextArea


Examples of com.barrybecker4.ui.components.ScrollingTextArea

     * initialize UI for server.
     */
    private void initUI(String gameName) {
        JPanel panel = new JPanel();
        JLabel label = new JLabel("Commands received over the socket:");
        textArea = new ScrollingTextArea(20, 44);

        panel.setLayout(new BorderLayout());
        panel.setBackground(Color.white);
        panel.add("North", label);
        JScrollPane scrollPane = new JScrollPane(textArea);
View Full Code Here

Examples of com.barrybecker4.ui.components.ScrollingTextArea

    public ChatPanel(IServerConnection connection) {
        setLayout(new BorderLayout());
        connection_ = connection;
        connection_.addOnlineChangeListener(this);

        textArea_ = new ScrollingTextArea();
        textArea_.setBackground(getBackground());
        textArea_.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);

        messageField_ = new JTextField();
        messageField_.addKeyListener(this);
View Full Code Here

Examples of com.barrybecker4.ui.components.ScrollingTextArea

                BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder(),"Edit current Scene" ) );

        nameInput_= new TextInput("name:", scene_.getName());
        nameInput_.setColumns(50);

        sceneText_ = new ScrollingTextArea();
        sceneText_.setEditable(true);
        sceneText_.setFont(StoryPanel.TEXT_FONT);
        sceneText_.setText(scene_.getText());

        add(nameInput_, BorderLayout.NORTH);
View Full Code Here

Examples of com.barrybecker4.ui.components.ScrollingTextArea

        showContent();
    }

    @Override
    protected JComponent createDialogContent() {
        textArea_ = new ScrollingTextArea(40, 30);

        // if its editable then we can copy from it
        textArea_.setEditable( true );
        textArea_.setFont( TEXT_FONT );
        return textArea_;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.