Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5491
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.gui |
| Subject | Re: actionListener vs. action |
| Date | Sat, 27 Feb 2016 05:08:12 -0000 (UTC) |
| Organization | A noiseless patient Spider |
| Lines | 50 |
| Message-ID | <naravs$ls4$1@dont-email.me> (permalink) |
| References | <97d6e7d8-df96-4534-80c2-4d19e63a9b76@googlegroups.com> <actionListener-20160226032244@ram.dialup.fu-berlin.de> <naomr2$1jl$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sat, 27 Feb 2016 05:08:12 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="5e45ef46140b05dc5105f4b40d13e4a5"; logging-data="22404"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19v4Qjrp65AxtDu8xJiVZKoqjbqO0xdIgY=" |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| Cancel-Lock | sha1:u6eU4Zaa+JEMKGqTjGZZlhh+e0I= |
| Xref | csiph.com comp.lang.java.gui:5491 |
Show key headers only | View raw
On Thu, 25 Feb 2016 21:15:03 -0800, Knute Johnson wrote:
> On 2/25/2016 18:23, Stefan Ram wrote:
>> phpete48@gmail.com writes:
>>> I'm trying to clearly delineate actionListener and action. Could
>>> someone please concisely compare the two.
>>
>> These are two identifiers. Both Camel Case. »actionListener« has 14
>> characters and consists of two English words. »action«
>> has 6 characters and consists of one English word.
>>
>> The following program shows how they can be used in a program:
>>
>> public class Main { public static void main(String args[]) throws
>> Exception
>> { final int actionListener = 8;
>> final int action = 4; System.out.println( actionListener +
>> action ); }}
>>
>> 12
>>
>>> Also, under which conditions should you use one over the other.
>>
>> Use the identifier »actionListener« to name something that is
>> listening to/for an action. (Usually this is not an »int« as in the
>> above program. This program was just an example.)
>>
>> Use the identifier »action« to name something that is an action
>> itself. Something that does not just /listen/ to an action, but /is/
>> an action!
>>
>>
> Bored tonight are we Stefan?
A year ago in January I posted a question to c.l.j.p about a large image
crashing javafx.scene.image.ImageView. Yesterday I happened to revisit
the issue and discovered that between then and now something has changed
and I am now able to display a large image (5100 x 6600 2bpp) in an
ImageView.
Since this discovery I have been hard at work seeing what needs to be
done to port an existing Swing application that uses and displays large
images to JavaFX. I needed a break and came here to c.l.j.g and saw your
post.
How To Ask Questions The Smart Way
<http://catb.org/~esr/faqs/smart-questions.html>
Thank you for the opportunity to stretch my legs.
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
actionListener vs. action phpete48@gmail.com - 2016-02-25 10:59 -0800
Re: actionListener vs. action Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-02-25 13:16 -0800
Re: actionListener vs. action Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2016-02-25 21:15 -0800
Re: actionListener vs. action Jeff Higgins <jeff@invalid.invalid> - 2016-02-27 05:08 +0000
csiph-web