Greetings,
Heh... How about explaining multi-monitor support? One of the more
pervasive bug reports I get for my open source app is that when people
open up the context menu or get tooltip pop-ups, they are on the wrong
monitor (generally the '0th' monitor), sometimes flush against a side,
sometimes in the 'right about correct' spot on the screen for where
the cursor is, just on the wrong monitor.
One issue may be that the JPopupMenu for the context menu is
constructed at program start, and so it gets the graphics
configuration of the 'first monitor', but the frame may have been
moved to another monitor. Still, the X/Y that come in the mouse event
when the user does the context menu action (ctrl-click or right-click)
are supposed to be in the 'context' of the component that the click
occurred in, but using those X and Y values for setLocation only works
on a single-monitor screen.
Since there isn't a 'setGraphicsConfiguration', or whatever, for
moving a components native 'screen'...well, I'm at a loss, and worse
yet I don't have a multiple-monitor setup to even test this on. I'd
love to help my users out, but I'm stuck...and for once, Google didn't
seem to help much, as it's apparently not a very common problem.
-- Morgan Schweers, CyberFOX!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden