Cómo poner borde a un JComponent
//llamando al color por su nombre
JComponent.setBorder(BorderFactory.createLineBorder(Color.black));
//creando una variable Color
Color color = new Color(131,111,255);
JComponent.setBorder(BorderFactory.createLineBorder(color ,2));
Tipos de borde en la clase BorderFactory:JComponent.setBorder(BorderFactory.createLineBorder(Color.black));
//creando una variable Color
Color color = new Color(131,111,255);
JComponent.setBorder(BorderFactory.createLineBorder(color ,2));
createEmptyBorder((int top, int left, int bottom, int right)
createLineBorder(Color.color, int thickness)
createMatteBorder(int top, int left, int bottom, int right, Color.color)
createLoweredBevelBorder()
createRaisedBevelBorder()
No hay comentarios:
Publicar un comentario