Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #13940
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: swing component? |
| Date | 2012-04-27 05:06 -0700 |
| Organization | Canadian Mind Products |
| Message-ID | <rm2lp7pqm55gvjepqtodirnb4pms3jbpm7@4ax.com> (permalink) |
| References | <24010092.561.1335104359317.JavaMail.geo-discussion-forums@pbckz3> <jn175o$9u8$1@news.albasani.net> <jn17g2$agj$1@news.albasani.net> |
On Sun, 22 Apr 2012 17:18:26 +0200, Jan Burse <janburse@fastmail.fm>
wrote, quoted or indirectly quoted someone who said :
>So an alternative route would be to subclass:
>
> class myTable extends JTable {
> myType myKey;
> }
The problem with subclassing is you really want to insert the methods
in JComponent. You have to add them independently to every Component
you want to customise. About the only help Java gives you is the
interface which can be used to make sure you don't forget some of the
methods, and to let you get at the methods abstractly. Seems to me I
remember reading back in the 90s it was possible in SmallTalk to
insert extra methods in a base class.
--
Roedy Green Canadian Mind Products
http://mindprod.com
The population is aging, especially in Japan and
there are not enough young people to take care of them. This will
stimulate the evolution of caretaker robots, at first
supervised and largely controlled remotely by human nurses.
Over time they will work more and more independently
doing tasks like bathing, feeding, cleaning up, dispensing
medications and acting as companions by playing games
and conversing. The technology can then be loosed on
mankind's most vexing problem -- being sexually
attracted to people who have no interest back.
.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
swing component? Peter Cheung <cmk128@gmail.com> - 2012-04-22 07:19 -0700
Re: swing component? markspace <-@.> - 2012-04-22 07:47 -0700
Re: swing component? "Qu0ll" <Qu0llSixFour@gmail.com> - 2012-04-23 01:05 +1000
Re: swing component? Jan Burse <janburse@fastmail.fm> - 2012-04-22 17:12 +0200
Re: swing component? Jan Burse <janburse@fastmail.fm> - 2012-04-22 17:18 +0200
Re: swing component? markspace <-@.> - 2012-04-22 10:10 -0700
Re: swing component? Peter <mcheung63@gmail.com> - 2012-04-24 06:44 -0700
Re: swing component? Roedy Green <see_website@mindprod.com.invalid> - 2012-04-27 05:06 -0700
Re: swing component? Roedy Green <see_website@mindprod.com.invalid> - 2012-04-24 08:52 -0700
csiph-web