Hola! Gracias por la respuesta. De hecho, me funciono
panel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "TITULO", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1, 14), new java.awt.Color(255, 255, 255)));lo ando haciendo en netbeans