Help : Implementing rubberbanding (moving shapes) in Applet
From: Ajay Patil (ajaypatilpune_at_hotmail.com)
Date: 12/12/03
- Next message: Jorge Torres: "Re: Scroll Bar keeps on moving up"
- Previous message: Roedy Green: "Re: Displaying overlapping card hand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 11 Dec 2003 20:39:42 -0800
Hello,
I need the advice on how to implement rubberbanding and moving rectangles
in an applet.
I can think of two approaches.
1. Use Java 2D and handle mouse events in the panel.
2. Draw each rectangle as a AWT/Swing component and let it handle its own
mouse events.
Can someone advice me which of the above approaches is better.
In the second approach, I was thinking that if I use a layout manager like
GridBagLayout, then I wont be able to control exact locations of the rectangles.
Your help/advice is appreciated.
Ajay
- Next message: Jorge Torres: "Re: Scroll Bar keeps on moving up"
- Previous message: Roedy Green: "Re: Displaying overlapping card hand"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading