Create an application that enables the user to paint a shape – an oval, or rectangle, or a line. The user should be able to choose the shape to draw, the color in which the shape should appear and whether the shape should be filled with color. Use JRadioButton-s to select the type of a shape (which should be oval, or rectangle, or a line) and JCheckBox to determine if the shape should be filled with color. Use JComboBox to choose the color of the shape (You can use 3-4 colors). To determine location of the shape, implement the method mousePressed of the MouseListener (or MouseAdapter) to set the first corner of the shape and the method mouseReleased to set the second corner of the shape and paint the shape (you can use methods abs of the class Math computing absolute value to determine the width and the height of the shape, and min to determine the coordinates of the top left corner point of the shape). Use panels as appropriate – one to house the widgets (or you can use one panel to house radiobuttons, and another one – to house checkbox and combobox), and one - for painting, using BorderLayout to place them on the main frame. (I recommend making JPanel used for painting the listener to mouse events). Or, you can use one frame to house widgets and another frame for painting.
Don’t use any JavaSwing or any other ..it should be simple label and radio buttons etc.,
5 freelancers are bidding on average $25 for this job
HI Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks
I am Java/Grails developer with 3.5+ year experience in software development. I developend many application and worfed on JComboBox, JCheckBox, MouseAdapter Janel, Frame etc. I know very well.