I am new to GUI Java programming and I am attempting to find the best way of creating a frame to contain a series of menus. I am first adding logic to have the date and time appear in the frame, but the way I am doing it they are both showing up on the same line and I can't seem to find any sources on how to get these and additional text to appear on separate lines. The Lab is to write a program called DayGui.java that creates a GUI having the following properties:
Object- Property- Setting-
JFrame Name mainFrame
JButton Name cmdGood
JButton Name cmdBad
Add individual event handlers to the your program so that when a user clicks the Good button, the message Today is a good day! appears in a dialog box, and when the Bad button is clicked, the message I'm having a bad day today! is displayed.