Examples of JLabelI18nListener


Examples of net.sf.myjaut.i18n.JLabelI18nListener

// TODO: fix in something a lot fancier than this
public class JTextDisplay extends JPanel {
    public JTextDisplay (String i8nKey, I18nManager i8n) {
        setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
        i8n.addI18nListener(new JLabelI18nListener(caption, i8nKey));
        caption.setAlignmentX(CENTER_ALIGNMENT);
        add(caption);
        nameLabel.setAlignmentX(JLabel.CENTER_ALIGNMENT);
        add(nameLabel);
    }
View Full Code Here

Examples of net.sf.myjaut.i18n.JLabelI18nListener

        panels.put(key, new RegularTabPane(key));
    }

    private JLabel getLabel(String i18nKey) {
        JLabel label = new JLabel();
        c.getI18n().addI18nListener(new JLabelI18nListener(label, i18nKey));
        return label;
    }
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.