Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #35536

Re: Conveniance methods in Swing and JavaFX

Path csiph.com!aioe.org!.POSTED!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: Conveniance methods in Swing and JavaFX
Date Fri, 2 Sep 2016 14:14:02 -0400
Organization Aioe.org NNTP Server
Lines 39
Message-ID <nqcfh9$msb$1@gioia.aioe.org> (permalink)
References <methods-20160902185728@ram.dialup.fu-berlin.de>
NNTP-Posting-Host 7SK6yTFfqwlIPNBLl3l7Qg.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:35536

Show key headers only | View raw


On 9/2/2016 2:06 PM, Stefan Ram wrote:
>   The grandfather of my grandfather had left a blotter, wherein
>   he wrote
>
> jframe.getContentPane().add(
>
>   , but my grandfather told me that in his days, he already was
>   able to write
>
> jframe.add(
>
>   . Apparently, someone must have added a conveniance method name
>   »add« to »javax.swing.JFrame« in the meantime.
>
>   Now, today, we write,
>
> javafxpane.getChildren().add( component )
>
>   . Yeah, we write ».getChildren()«, then ».getChildren()«, and
>   later, ».getChildren()«. It seems to be a step backwards to the
>   days of »getContentPane()«. Surely, someone must have had thought
>   about adding convenience methods to classes like »javafx.scene.
>   layout.StackPane« too, but then he must have refrained from adding
>   such convenience methods for some reason. Why? Maybe there were
>   some bad experiences or consequences of the convenience methods
>   in Swing observed?

Convenience methods tend to be added later.

If you are lucky then JavaFX will get the.

If the tell the team, then you increase the probability of being
lucky.

:-)

Arne

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

Re: Conveniance methods in Swing and JavaFX Arne Vajhøj <arne@vajhoej.dk> - 2016-09-02 14:14 -0400

csiph-web