add StarRatingController to implement MVC model in the StarRating functionality. It's hard to use an action directly on the JPanel.