USING JAVA - create a program that has two frames. NumberFrameView and GraphFrameView. The first frame NumberViewFrame should have 3 labels: Red, Green, Blue, each followed by a text field to enter number values, and an Update Button. The second frame GraphView shows a simple bar graph, like a histogram(rectangles), that correspond and represent the 3 entered values for Red, Green, Blue from the first frame. When the update button is pressed from the first frame, the graph in the second frame should be redrawn. Follow the observer pattern. Store the data (numbers) in a model. Attach the graph view as a listener to the model (observer pattern). When a number is updated, the Number view should update the model, and the model should tell the graph view that a change has occured. As a result, the graph view should repaint itself. Please include at least four classes: NumberViewFrame, GraphViewFrame, Model, and Tester. Tester will have main method and initializes objects of NumberViewFrame, GraphViewFrame, and Model. Tester should attach GraphView to the Model object. Use javax swing for GUI
USING JAVA - create a program that has two frames. NumberFrameView and GraphFrameView.
The first frame NumberViewFrame should have 3 labels: Red, Green, Blue,
each followed by a text field to enter number values, and an Update Button.
The second frame GraphView shows a simple bar graph, like a histogram(rectangles), that correspond and represent the 3 entered values for Red, Green, Blue from the first frame.
When the update button is pressed from the first frame, the graph in the second frame should be redrawn. Follow the observer pattern. Store the data (numbers) in a model. Attach the graph view as a listener to the model (observer pattern). When a number is updated, the Number view should update the model, and the model should tell the graph view that a change has occured. As a result, the graph view should repaint itself.
Please include at least four classes: NumberViewFrame, GraphViewFrame, Model, and Tester. Tester will have main method and initializes objects of NumberViewFrame, GraphViewFrame, and Model. Tester should attach GraphView to the Model object.
Use javax swing for GUI.
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)