Computer science

    1- Create a JFrame, and set the layout to BorderLayout. Place a JButton in each region, and place the name of an appropriate United States landmark on each JButton. For example, New York’s Statue of Liberty might be the landmark in the east region. Save the file as JLandmarkFrame.java.
    2. A. Write an application that instantiates a JFrame that contains a JButton. Disable the JButton after the user clicks it. Save the file as JFrameDisableButton.java.
    B. Modify the JFrameDisableButton program so that the JButton is not disabled until the user has clicked at least eight times. At that point, display a JLabel that indicates “That’s enough!”. Save the file as JFrameDisableButton2.java.
    3. A. Write an application that extends JFrame and that displays a phrase in one color the first time the user clicks a JButton. The next time the user clicks the JButton, make the first phrase seem to disappear. (Hint: Redraw it using the background color.) At the same time, draw the phrase again in a different color,size, and horizontal position. The third click should change the color, size, and position of the phrase again. Save the file as JChangeSizeAndColor.java.

                                                                                                                                      Order Now