Package com.mucommander.ui.text

Examples of com.mucommander.ui.text.MultiLineLabel


        if(icon!=null)
            setIcon(icon);

        YBoxPanel yPanel = new YBoxPanel(5);

        mainLabel = new MultiLineLabel(mainMessage);
        if(mainMessageFontStyle!=Font.PLAIN)
            setMainLabelFontStyle(mainMessageFontStyle);
        yPanel.add(mainLabel);

        yPanel.addSpace(5);

        captionLabel = new MultiLineLabel(captionMessage);
        Font labelFont = mainLabel.getFont();
        captionLabel.setFont(labelFont.deriveFont(Font.PLAIN, labelFont.getSize()-2));
        yPanel.add(captionLabel);

        add(yPanel, BorderLayout.CENTER);
View Full Code Here


            String comment = OSXFileUtils.getSpotlightComment(singleFile);
            JLabel commentLabel = new JLabel(Translator.get("comment")+":");
            commentLabel.setAlignmentY(JLabel.TOP_ALIGNMENT);
            commentLabel.setVerticalAlignment(SwingConstants.TOP);

            labelPanel.addRow(commentLabel, new MultiLineLabel(comment), 6);
        }

        updateLabels();

        fileDetailsPanel.add(labelPanel, BorderLayout.CENTER);
View Full Code Here

TOP

Related Classes of com.mucommander.ui.text.MultiLineLabel

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.