Re: [java-gnome-hackers] StockNames
Brought to you by:
afcowie
From: Mark H. <mh...@ti...> - 2002-08-25 15:40:13
|
On Sun, 2002-08-25 at 01:15, Sergio Rubio wrote: > Hi all! >=20 > Jeff, don't you think that StockNames should be static StockName > objects? >=20 > I mean, if you are going to create a new stock Button ie, >=20 > Button b=3Dnew Button(StockName.SAVE); >=20 > you can't do it like this, firts of all you have to build the StockName > object, >=20 > StockName obj=3Dnew StockName(StockName.SAVE); > Button b=3Dnew Button(obj); >=20 > I this correct? well, you could do it all in one line: Button b=3Dnew Button( new StockName(StockName.SAVE) ); but you're right, it's probably best to have static objects. Also, StockItem might be a better name than StockName. --=20 +----------------------------------------------+ | Mark Howard cam.ac.uk mh344@ | | http://www.tildemh.com tildemh.com mh@ | +----------------------------------------------+ |