Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35536
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Conveniance methods in Swing and JavaFX |
| Date | 2016-09-02 14:14 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nqcfh9$msb$1@gioia.aioe.org> (permalink) |
| References | <methods-20160902185728@ram.dialup.fu-berlin.de> |
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
Re: Conveniance methods in Swing and JavaFX Arne Vajhøj <arne@vajhoej.dk> - 2016-09-02 14:14 -0400
csiph-web