Question: Write a program in java that consists of a window containing two panels: one with a column of text fields containing numbers (the model/controller), and

Write a program in java that consists of a window containing two panels: one with a column of text fields containing numbers (the model/controller), and another that draws a bar graph illustrating the relative values of the numbers (the view). When the user changes a number in a text field, the corresponding bar in the graph should change and the graph should redraw itself.

_____________________________________________________

2. Add another view to your program for example, another type of graph (line graph, e.g.) or a color panel that displays the numbers as various shades of gray (for example, if the number is 150, a portion of the color panel might display a circle filled with the Color object constructed with the values 150, 150, 150). for regular screen

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!