Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i would like a program that chooses Shapes from the left side and paint it atumatically by pressing the mouse than drag than release, i
i would like a program that chooses Shapes from the left side and paint it atumatically by pressing the mouse than drag than release, i don't want a paint Program! with the the Shown JManu
My Paint Application Develop a paint application which includes functionality for drawing different shapes. These diagrams can be drawn using different color and fill options. The application should have menus as well as toolbar to select different shapes. A sample application window is as shown in the diagram Welcome to MyPaint . Designed by > Settings Current Shape ick and drag the mouse to draw a: Crcle Following points need to be noted for developing the application: 1. A toolbar (JToolBar) should contain a number of buttons each representing a shape to be drawn. Once a shape is selected by mouse, the button is shown pressed. The shapes to be drawn are Circles, Ovals, Rectangles, Squares and Lines. Buttons in the toolbar should have appropriate icons and tooltips. 2. A shape can also be selected from the menu Current Shape". The menu has JRadioButtonMenultems so that only one is selected at any given time. It is important that the toolbar selection and menu item selection is synchronized. 3. A settings menu has a menu item called "Drawing Settings". Once clicked, it opens a window to select the drawing settings like "Color", "Style: Normal" or "Style: Filled". Hint: You can use JColorChooser class to get a user color option. A status bar (JLabel) at the bottom of the application shows some status messages like the current selected shape, the mouse coordinates etc. as shown in sample figures Bonus (optional): Clicking mouse over a shape highlights the shape and if you right click on the selected shape, a popup menu (JPopupMenu) appears which gives an option to see 4. 5
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started