Java Swing LineBorder addBordersToLine(Component content)

Here you can find the source of addBordersToLine(Component content)

Description

add Borders To Line

License

Open Source License

Declaration

static Component addBordersToLine(Component content) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.Color;
import java.awt.Component;

import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Main {
    final static Color CYAN = new Color(99, 158, 255);

    static Component addBordersToLine(Component content) {
        // Crea el panel principal con la imagen de login
        JPanel rightFooterbelly = new JPanel();
        BoxLayout boxLayout3 = new BoxLayout(rightFooterbelly, BoxLayout.X_AXIS);
        rightFooterbelly.setLayout(boxLayout3);
        rightFooterbelly.setBackground(CYAN);

        JLabel leftbar2 = new JLabel();
        ImageIcon leftbariconp = new ImageIcon("files/img/latizqp.jpg");
        leftbar2.setIcon(leftbariconp);//www  .j  av a2s.c o m
        rightFooterbelly.add(leftbar2);

        rightFooterbelly.add(content);

        JLabel rightbar2 = new JLabel();
        ImageIcon rightbariconp = new ImageIcon("files/img/latderp.jpg");
        rightbar2.setIcon(rightbariconp);
        rightFooterbelly.add(rightbar2);

        return rightFooterbelly;
    }
}

Related

  1. addDebugBorders(JPanel panel)
  2. changeBorder(JComponent field, Object fieldValue, PropertyChangeEvent e)
  3. createDebugBorder()
  4. createLineBorder()