Examples of changeStyle()


Examples of com.jcloisterzone.ui.component.TextPrompt.changeStyle()

        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);
View Full Code Here

Examples of com.jcloisterzone.ui.component.TextPrompt.changeStyle()

        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() {
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.