Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1227 > unrolled thread
| Started by | "lemmi" <lemmi@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:32 +0000 |
| Last post | 2011-04-27 15:32 +0000 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.java.gui
MacOS X: annoying rectang "lemmi" <lemmi@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: MacOS X: annoying rec "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: MacOS X: annoying rec "lemmi" <lemmi@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: MacOS X: annoying rec "lemmi" <lemmi@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
Re: MacOS X: annoying rec "steve" <steve@THRWHITE.remove-dii-this> - 2011-04-27 15:32 +0000
| From | "lemmi" <lemmi@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:32 +0000 |
| Subject | MacOS X: annoying rectang |
| Message-ID | <1174313898.040427.25650@o5g2000hsb.googlegroups.com> |
To: comp.lang.java.gui Hi, I have a problem when running my app under MacOS X. I have a panel in which the user can resize and move graph objects. For this I am using the D&D API. Everything works fine on Windows but on MacOS X I get a rectangle during the d&d operation of the panel where the DragGestureListener was created. The listener gets created like this: DragSource dragSource = new DragSource(); dragSource.createDefaultDragGestureRecognizer(lc, DnDConstants.ACTION_MOVE, this); where 'lc' is the JPanel. I am assuming that MacOS X wants to do me a favour and display the bounds of the dragged panel. But I do not want to drag the panel itself, I just want to receive the drag events so that I can manipulate graphics objects that are rendered inside the panel. Does anyone know a fix for this? Dirk --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:32 +0000 |
| Subject | Re: MacOS X: annoying rec |
| Message-ID | <1174317117.238777.44870@p15g2000hsd.googlegroups.com> |
| In reply to | #1227 |
To: comp.lang.java.gui On Mar 20, 1:18 am, "lemmi" <dlemmerm...@gmail.com> wrote: .. > ...I do not want to drag the panel > itself, I just want to receive the drag events so that I can > manipulate graphics objects that are rendered inside the panel. > > Does anyone know a fix for this? Use a MouseListener. Andrew T. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "lemmi" <lemmi@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:32 +0000 |
| Subject | Re: MacOS X: annoying rec |
| Message-ID | <1174382802.876759.302240@d57g2000hsg.googlegroups.com> |
| In reply to | #1230 |
To: comp.lang.java.gui On 19 Mrz., 16:11, "Andrew Thompson" <andrewtho...@gmail.com> wrote: > On Mar 20, 1:18 am, "lemmi" <dlemmerm...@gmail.com> wrote: > .. > > > Use a MouseListener. > I could do that but then I loose the ability to drop my graph objects on other components, windows or even apps. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "lemmi" <lemmi@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:32 +0000 |
| Subject | Re: MacOS X: annoying rec |
| Message-ID | <1174848112.704847.183950@n59g2000hsh.googlegroups.com> |
| In reply to | #1239 |
To: comp.lang.java.gui On 20 Mrz., 11:26, "lemmi" <dlemmerm...@gmail.com> wrote: > On 19 Mrz., 16:11, "Andrew Thompson" <andrewtho...@gmail.com> wrote: > > > On Mar 20, 1:18 am, "lemmi" <dlemmerm...@gmail.com> wrote: > > .. > > > Use a MouseListener. > > I could do that but then I loose the ability to drop my graph objects > on other > components, windows or even apps. OK, I found out how to solve this. There are three different startDrag() methods on the DragGestureEvent object. At least one of them accepts an Image that will be shown during the drag & drop operation (at least on some operating systems, Windows doesn't support this, but it looks great on my Mac). If an image gets specified then the rectangle bounds of my panel will not be shown. Dirk --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [next] | [standalone]
| From | "steve" <steve@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:32 +0000 |
| Subject | Re: MacOS X: annoying rec |
| Message-ID | <eu8bvs012nt@news2.newsguy.com> |
| In reply to | #1287 |
To: comp.lang.java.gui On Mon, 26 Mar 2007 02:41:52 +0800, lemmi wrote (in article <1174848112.704847.183950@n59g2000hsh.googlegroups.com>): > On 20 Mrz., 11:26, "lemmi" <dlemmerm...@gmail.com> wrote: >> On 19 Mrz., 16:11, "Andrew Thompson" <andrewtho...@gmail.com> wrote: >> >>> On Mar 20, 1:18 am, "lemmi" <dlemmerm...@gmail.com> wrote: >>> .. >> >>> Use a MouseListener. >> >> I could do that but then I loose the ability to drop my graph objects >> on other >> components, windows or even apps. > > OK, I found out how to solve this. There are three different > startDrag() > methods on the DragGestureEvent object. At least one of them accepts > an > Image that will be shown during the drag & drop operation (at least > on > some operating systems, Windows doesn't support this, but it looks > great > on my Mac). If an image gets specified then the rectangle bounds of > my > panel will not be shown. > > Dirk > it's only when you start to program a mac, that you realize how cool it really is. --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web