Getting User Input to Drawing Shapes
Hi I am developing a program that allows users to draw shapes like Rectangle, Oval, Triangle on a JFrame. The user will select a shape from a menu items and then I am supposed to ask the user to enter specifications of the shape he selected like: location, size and color of the shape. I have JMenu that deals with the shape selection but I dont know how to present a input form so that the user can enter specifications of the shape. I tried JOptionPane's ShowInputDialog but I cant handle that. Does anyone know the best/easier way of getting input form the user??? I also want to know how I will be able to identify the color the user entered in the input form because there are a whole bunch of colors the user can type in the form. I will end up changing the location and size to ints or doubles(most probably ints).