Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.sf.kerner.utils.swing.impl.util;
 
 
public class UtilSwing {
    public static JComponent buildInfoPanelEmptyBorderScroll(final JComponent content) {
        final JPanel result = new JPanel(new BorderLayout());
        result.setBorder(BorderFactory.createEmptyBorder());
        final JScrollPane scroll = new JScrollPane(content);
        result.add(scroll.);
        return result;
    }
    public static JComponent buildInfoPanelEmptyBorderScroll(final JComponent contentfinal int topfinal int left,
            final int bottomfinal int right) {
        final JPanel result = new JPanel(new BorderLayout());
        result.setBorder(BorderFactory.createEmptyBorder(topleftbottomright));
        final JScrollPane scroll = new JScrollPane(content);
        result.add(scroll.);
        return result;
    }
    public static JComponent buildInfoPanelTextBorder(final JComponent contentfinal String title) {
        final JPanel result = new JPanel(new BorderLayout());
        result.setBorder(BorderFactory.createTitledBorder(title));
        result.add(content.);
        return result;
    }
    public static JComponent buildInfoPanelTextBorder(final JLabel contentfinal String title) {
        content.setVerticalAlignment(.);
        content.setOpaque(true);
        return buildInfoPanelTextBorder((JComponentcontenttitle);
    }
    public static JComponent buildInfoPanelTextBorderScroll(final JComponent contentfinal String title) {
        final JPanel result = new JPanel(new BorderLayout());
        result.setBorder(BorderFactory.createTitledBorder(title));
        final JScrollPane scroll = new JScrollPane(content);
        result.add(scroll.);
        return result;
    }
    public static JComponent buildPanelEmptyBorder(final JComponent contentfinal int topfinal int left,
            final int bottomfinal int right) {
        final JPanel result = new JPanel(new BorderLayout());
        result.setBorder(BorderFactory.createEmptyBorder(topleftbottomright));
        result.add(content.);
        return result;
    }
    private UtilSwing() {
    }
New to GrepCode? Check out our FAQ X