code: private void resetDefaultBorders() {
          try {
              // Etched Borders
              Field highLightColor = EtchedBorder.class.getDeclaredField("highlight");
              highLightColor.setAccessible(true);
              Field shadowcolor = EtchedBorder.class.getDeclaredField("shadow");
              shadowcolor.setAccessible(true);
  
              Border etchedBorder = BorderFactory.createEtchedBorder();
              highLightColor.set(etchedBorder, null);
              shadowcolor.set(etchedBorder, null);
  
              Border raisedEtchedBorder = BorderFactory.createEtchedBorder(EtchedBorder.RAISED);
              highLightColor.set(raisedEtchedBorder, null);
              shadowcolor.set(raisedEtchedBorder, null);
              
              // Bevel Borders
              Field highlightOuter = BevelBorder.class.getDeclaredField("highlightOuter");
              highlightOuter.setAccessible(true);
              Field highlightInner = BevelBorder.class.getDeclaredField("highlightInner");
              highlightInner.setAccessible(true);
              Field shadowOuter = BevelBorder.class.getDeclaredField("shadowOuter");
              shadowOuter.setAccessible(true);
              Field shadowInner = BevelBorder.class.getDeclaredField("shadowInner");
              shadowInner.setAccessible(true);
  
              Border loweredBevelBorder = BorderFactory.createLoweredBevelBorder();
              highlightOuter.set(loweredBevelBorder, null);
              highlightInner.set(loweredBevelBorder, null);
              shadowOuter.set(loweredBevelBorder, null);
              shadowInner.set(loweredBevelBorder, null);
  
              Border raisedBevelBorder = BorderFactory.createRaisedBevelBorder();
              highlightOuter.set(raisedBevelBorder, null);
              highlightInner.set(raisedBevelBorder, null);
              shadowOuter.set(raisedBevelBorder, null);
              shadowInner.set(raisedBevelBorder, null);
              
          } catch (SecurityException e) {
              e.printStackTrace();
          } catch (NoSuchFieldException e) {
              e.printStackTrace();
          } catch (IllegalArgumentException e) {
              e.printStackTrace();
          } catch (IllegalAccessException e) {
              e.printStackTrace();
          }
          
      }
docs: Border factory is static so we need to do some nasty reflection tricks to change it.
  @param d