🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages Started by Ramon F Herrera Thu, 23 Dec 2004 17:40
Presence of toolbar shifts coordinates
#778
Author: Ramon F Herrera
Date: Thu, 23 Dec 2004 17:40
24 lines
1807 bytes
I am writing a simple Swing application that has a
JToolbar which can be docked against the menu bar or
floating around (in its own little window).

A problem occurs when the user is rubberbanding.

When the JToolbar is not docked, the coordinates work
as they should and the dotted rectangle is drawn under
the mouse pointer. When the JToolbar is docked, however,
the rectangular rubberband shows up several pixels
above the mouse pointer.

I guess I need to have some event captured when the
toolbar is [un]docked and compensate the coordinates
with an appropriate offset.

What event(s) should I have listeners for?

TIA,

-Ramon F Herrera

ps: I wonder if this is a Java bug...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads