🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3106

Re: 'application-modal' cursor?

#3106
From: Torsten Welches
Date: Wed, 06 May 1998 00:00
39 lines
1771 bytes
On Mon, 04 May 1998 10:30:43 -0700, Rich Wilkman
<rwilkman@corp.borland.com> wrote:

>I guess I'd add a toggleCursor() mechanism to my components (or roll
>my own containers and place it there).  Then you could just call that
>method with an int parameter that simply means change to CursorX.
>
>Or, you could add a defaultCuror property to the components yourself.
>
>Or you could live with the cursor being wrong initially and use a
>mouseEntered event on the text components to reset the cursor.

Rich,

thanks again. 
Here is what I've chosen as a workaround so far to get the default
cursor for any type of component. Kinda overkill, but anyway...

static Cursor getComponentDefaultCursor(Component component) {
  Cursor result = null;
  try {
    result =
((Component)component.getClass().newInstance()).getCursor();
  } catch (Exception ex) {...}
  return result;
}

BTW - congratulations on JBuilder 2! I have had the chance to get my
hands on a beta and now that it's released I am looking forward to do
some "real" work with it. 
Good job, folks. ;-)
   
Regards
Torsten


-------
please remove '.NO_SPAM' from e-mail adress to contact me outside the newsgroups
Technical Details
Message-ID: <354f7d05.6948651@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3548b5f2.16008549@forums.borland.com> <3548FAB1.4FCED55E@corp.borland.com> <354a637d.975011@forums.borland.com> <354DFB43.79A8D94F@corp.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,bc31dbc8cc333df
X-Google-Attributes: gid1089d0,public
From: torsten.welches@netcologne.de.NO_SPAM (Torsten Welches)
Subject: Re: 'application-modal' cursor?
Date: 1998/05/06
Message-ID: <354f7d05.6948651@forums.borland.com>
X-Deja-AN: 350743558
References: <3548b5f2.16008549@forums.borland.com> <3548FAB1.4FCED55E@corp.borland.com> <354a637d.975011@forums.borland.com> <354DFB43.79A8D94F@corp.borland.com>
Organization: debis Systemhaus
Newsgroups: borland.public.jbuilder.java.api