jframe add border code example
Example: jframe border
YourFrame.getRootPane().setBorder(
BorderFactory.createMatteBorder(4, 4, 4, 4, Color.RED));
YourFrame.getRootPane().setBorder(
BorderFactory.createMatteBorder(4, 4, 4, 4, Color.RED));