Drawing in Java? or Maybe movable buttons?
Hello, I wanted to create a program that could calculate how big amount of boxes can a room fit. Boxes are different size all the time and you never know what dimension you are going to get. I wanted to make it somewhat visual by lets say a user enters dimensions and a box is drawn. I also need to make sure that the box fits in the room and they are not drawn one over another.
My idea is to just simply create buttons that user can move so user can see for himself if they fit or not, also have a function that auto arranges boxes (This is extra for later)
Now I Need a way to do this and i never learned anything like this in school, I only finished 1 year of java programming and got few months till next so I am trying to do something new to keep up with my programming.
Is there a way to make buttons movable once created in a compiled program. Or is there a way for java to draw regular boxes in compiled program and delete them?
Thanks upfront for taking the time to help me out.
EDIT: The movable buttons needs to be dragged with a mouse and be leveled up with edges of the room or other boxes.