Package com.jcloisterzone.ui.component

Examples of com.jcloisterzone.ui.component.TextPrompt


            }
        });

        input.setOpaque(false);
        input.setBackground(new Color(255, 255, 255, 8));
        TextPrompt tp = new TextPrompt(_("Type to chat"), input);
        tp.setShow(Show.FOCUS_LOST);
        tp.changeStyle(Font.ITALIC);
        tp.changeAlpha(0.4f);

        messagesPane = new JTextPane();
        messagesPane.setEditorKit(new WrapEditorKit());
        messagesPane.setFocusable(false);
        messagesPane.setOpaque(false);
View Full Code Here


        });
        presetPanel.add(presets, "width 160, gapright 10, west");

        JTextComponent editorComponent = (JTextComponent) presets.getEditor()
                .getEditorComponent();
        TextPrompt tp = new TextPrompt(_("Preset name"), editorComponent);
        tp.setShow(Show.FOCUS_LOST);
        tp.changeStyle(Font.ITALIC);
        tp.changeAlpha(0.4f);

        editorComponent.getDocument().addDocumentListener(
                new DocumentListener() {

                    private void handle(DocumentEvent e) {
View Full Code Here

TOP

Related Classes of com.jcloisterzone.ui.component.TextPrompt

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.