Gui Examples

There are 8 examples below. The first simply opens a window (JFrame). The last one has buttons and panels and listens to button clicks in order to do something. Each successive example adds one or two new features to more clearly demonstrate what each one does. -- open a window frame -- attach a window closing listener, make a title -- different way of attaching buttons -- attach a listener to button (use ActionListener) -- attach listeners to 2 buttons; test to tell which -- add Jpanel to JFrame with background color -- change the color, draw a line, repaint -- change the position of the line drawn too