I'm trying to make a basic production layout editor. I'm thinking of using swing and JPanels.
Basically I need to display JPanels inside another JPanel with XYLayout and then be able to move and resize them to change the layout. Each panel will represent a production section.
I can add the new JPanels(sections) using D&D with no problems and I can move them around to new positions with D&D also (Is this the better choice? Or is there a cleaner way of moving them?).
My main concern here is about resizing them, I have no clue on how will I be able to do it. How can I be able to select a JPanel and change it's dimensions manually like JBuilder, Eclipse or other IDEs Design editor does?
I think it has something to do with MarqueeHandlers or something, but it's really all dark here for me so any directions or examples would be appreciated.
Also if anyone knows some open source project that might do what I need please advice.
TIA
Basically I need to display JPanels inside another JPanel with XYLayout and then be able to move and resize them to change the layout. Each panel will represent a production section.
I can add the new JPanels(sections) using D&D with no problems and I can move them around to new positions with D&D also (Is this the better choice? Or is there a cleaner way of moving them?).
My main concern here is about resizing them, I have no clue on how will I be able to do it. How can I be able to select a JPanel and change it's dimensions manually like JBuilder, Eclipse or other IDEs Design editor does?
I think it has something to do with MarqueeHandlers or something, but it's really all dark here for me so any directions or examples would be appreciated.
Also if anyone knows some open source project that might do what I need please advice.
TIA