Original Post
my game's a classical side scroller- you jump on platfroms, kill enemies. now i've started working on the level editor app. i want the user to be able to drag the platform and resize after placing it, so i've created a class that inherites jComponent, and implements MouseListener, so when the mouse is clicked over the platform you can drag it, and when it is clicked over it's border you can resize it. first of all, is that the correct way to go? secondly, i don't want to rely on a LayoutManager, so i don't useone. i want my component to have it's own fixed size, but even though i've overrided getMaximumSize getMinimumSize getPrefferedSize the component still fills the whole jframe, even after i resize the frame. how do i prevent it? maybe i should create this component from scratch and not inherit JComponrnt?