Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: Object message? Date: Tue, 09 Oct 2012 02:11:29 -0700 Organization: Canadian Mind Products Lines: 17 Message-ID: <4gq778dca0tk3db180c2aou7qd7jkkqta1@4ax.com> References: <9621cdc5-4aa4-4057-894f-93ef69915871@googlegroups.com> Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:19203 On Mon, 8 Oct 2012 12:52:56 -0700 (PDT), bob smith wrote, quoted or indirectly quoted someone who said : >Can someone tell me why "message" is an Object here in javax.swing.JOptionP= >ane? > >Why isn't it a String? In general Object can let you pass any sort of information to yourself, not just a string. It can be formatted data. The disadvantage is you must cast it to a String. -- Roedy Green Canadian Mind Products http://mindprod.com The iPhone 5 is a low end Rolex.