Question: . Implement a Java application that has a border layout and labels for each region in the layout. Now defined mouse event to act as
. Implement a Java application that has a border layout and labels for each region in the layout. Now defined mouse event to act as the following a. When mouse enters CENTER the program shows a b. When mouse enters WEST the program shows a dialog e. When mouse enters SOUTH the program shows a d. When mouse enters NORTH the program shows a e. When mouse enters EAST the program shows a dialog dialog (Welcome to Riyadh) (Welcome to Jeddah) dialog (Welcome to Abha) dialog (Welcome to Hail) (Welcome to Dhahran) 2. Implement a java program with a JTextArea and Two Menus a. Color: which has three Items: Blue, Red, and Black b. Font: Which has three fonts:"Times New Roman", "MS Sans Serif", "Courier New" and "Bodoni MT Black" You should be able, by using the menus to change the font and the color of the text written in the JTextArea. 3. Design a Program "Shape Factory" that has Buttons to produce a. Random Rectangles with random colors b. Random Ellipses with random colors. e. Random Lines with random colors Whenever user clicks on a button, the corresponding shape will be added to the already drawn shapes in the JFrame 4. Modify the translation example and make it translate the shape left and right
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
