Package javax.swing

Examples of javax.swing.JTextArea.addFocusListener()


                String entry = "";
                for (int i = 0; i < llpts.length; i += 2) {
                    entry = entry + llpts[i] + " " + llpts[i + 1] + "\n";
                }
                ta = PaletteHelper.createTextArea("llpts", entry, pop, 5, 8);
                ta.addFocusListener(new FocusAdapter() {
                    public void focusLost(FocusEvent e) {
                        setLL((JTextArea) e.getSource());
                    }
                });
            } else {
View Full Code Here


                String entry = "";
                for (int i = 0; i < xypts.length; i += 2) {
                    entry = entry + xypts[i] + " " + xypts[i + 1] + "\n";
                }
                ta = PaletteHelper.createTextArea("xypts", entry, pop, 0, 0);
                ta.addFocusListener(new FocusAdapter() {
                    public void focusLost(FocusEvent e) {
                        setXY((JTextArea) e.getSource());
                    }
                });
            }
View Full Code Here

        textArea.setLineWrap(false);
        textArea.setFont(textArea.getFont().deriveFont(
            textArea.getFont().getSize2D() * 0.8f));
       
        CopyToClipboardHandler copyHandler = new CopyToClipboardHandler(textArea);
        textArea.addFocusListener(copyHandler);
        ShowSubdialogHandler subdialogHandler = null;

        JScrollPane scrollPane = new JScrollPane(textArea,
                JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
View Full Code Here

                                public void keyReleased(KeyEvent e) {
                                }
                            });
                            jta.addKeyListener(commandKeyListener);
                            jta.addFocusListener(flTextArea);

                            jsp.setViewportView(jta);
                            jp2.add(jsp,BorderLayout.CENTER);
                            hmTemp.put("contenido", jta);
View Full Code Here

        textArea.setBackground(background);
        textArea.setForeground(foreground);

        QueryScrollPane textPane = new QueryScrollPane(textArea);
        _addPair(name, lbl, textPane, textPane);
        textArea.addFocusListener(new QueryFocusListener(name));
    }

    /** Get the current value in the entry with the given name
     *  and return as a boolean.  If the entry is not a checkbox,
     *  then throw an exception.
View Full Code Here

        jtextarea.setEditable(false);
        jtextarea.setFont(a);
        JTextField jtextfield = new JTextField();

        jtextfield.addActionListener(new ServerGuiCommandListener(this, jtextfield));
        jtextarea.addFocusListener(new ServerGuiFocusAdapter(this));
        jpanel.add(jscrollpane, "Center");
        jpanel.add(jtextfield, "South");
        jpanel.setBorder(new TitledBorder(new EtchedBorder(), "Log and chat"));
        Thread thread = new Thread(new ServerGuiThreadRunnable(this, jtextarea, jscrollpane));
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.