There\'s a section of my program where the user should have the ability to edit an amount of time. There will be a default amount of time already set but the user should be able
You can use JSpinner to achieve this. I hope the below piece of would help.
JFrame frame = new JFrame("Date Picker");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JSpinner timeSpinner = new JSpinner( new SpinnerDateModel());
JSpinner.DateEditor timeEditor = new JSpinner.DateEditor(timeSpinner, "HH:mm:ss");
timeSpinner.setEditor(timeEditor);
timeSpinner.setValue(new Date());
frame.add(timeSpinner);
frame.setVisible(true);
frame.pack();