public static void getUserId(Label label) throws SQLException {
Statement st = null;
ResultSet rs = null;
String selectId = "SELECT user_id FROM users;";
try {
st = conn.createStatement();
rs = st.executeQuery(selectId);
while(rs.last()) label.setText("ID: " + rs.getString(1));
}
catch (SQLException e){
e.printStackTrace();
}
}