The assignment is rather short, so it is doubtful you will need a progress bar for your project. One possibility is to visually indicate how many seats are left on a flight (or whatever is applicable to your assignment scenario). A progress bar can be oriented horizontally (left to right, which is the default) or vertically (bottom to top). These are the progress bars and the slider used in Swing:
The following snippet is an example for the JProgressBar: int minimum = 0; //seats int maximum = 50; //seats JProgressBar progress = new JProgressBar(JProgressBar.VERTICAL, minimum, maximum); |