I am trying to learn some swing this week, one program I found to try and make was a simple GUI with checkboxes and buttons, which I have already made. The program would be used for selling computers at a base price -$500, and you can pick any combination of six peripherals. I have these boxes all made for the user to check off. I need to know where I need to implement the cost of these peripherals in the code. The main product should add together the peripherals that they have selected + the base cost of the computer. I am lost at where to stick in the cost of the peripherals. Do I do this in the actual codes for the Button that will be used to add them all up?