public void declineRequestHandler(String newvalue, String columnname, String user) { try { sql.getConnection(); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } try { sql.declineRequestDatabase(newvalue, columnname, user); sql.close(); } catch (Exception e) { e.printStackTrace(); } }