🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #16968

Re: SendMessage equvalent

#16968
From: Matt Krevs
Date: Thu, 07 Jan 1999 00:00
27 lines
1491 bytes
Is there a reason why you want to it this way? Have you ever used action
listeners. They are perfect for what you want to do.

I would definitely think twice about implementing a SendMessage
architecture.

If you havent used ActionListeners then check out the following link
http://java.sun.com/docs/books/tutorial/ui/swingEvents/actionlistener.html

Another step to make your code more generic is to use Actions. Check them
out at
http://java.sun.com/docs/books/tutorial/ui/swingMisc/action.html

Alexey Kalinichenko wrote in message <36942F91.206119C4@ecs.syr.edu>...
>Hello,
>
>
>I have JPanel and several controls derived from JComponent.
>I want when user clicks at a control forward this message to the parent
>(Panel). I don't want to hard code it. Instead I want to use something
>like
>SendMessage Win32 API. Is it possible?
>
>Thanks,
>
>Alexey
>
Technical Details
Message-ID: <771gkb$ehg7@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36942F91.206119C4@ecs.syr.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,9fd69555d459b809
X-Google-Attributes: gid111d45,public
X-Google-Thread: f74b3,9fd69555d459b809
X-Google-Attributes: gidf74b3,public
From: "Matt Krevs" <mattkrevs@flex.com.au>
Subject: Re: SendMessage equvalent
Date: 1999/01/07
Message-ID: <771gkb$ehg7@forums.borland.com>
X-Deja-AN: 429698523
References: <36942F91.206119C4@ecs.syr.edu>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.java.swing