The Artima Developer Community
Sponsored Link

Java Buzz Forum
JavaLobby - JOptionPane Can Hold More Than Text

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Scott Delap

Posts: 1154
Nickname: scottdelap
Registered: Sep, 2004

Client / Server application developer.
JavaLobby - JOptionPane Can Hold More Than Text Posted: Jun 8, 2005 12:07 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Scott Delap.
Original Post: JavaLobby - JOptionPane Can Hold More Than Text
Feed Title: ClientJava.com
Feed URL: http://www.clientjava.com/archives/wireless_mobile.rdf
Feed Description: Client/Desktop Related Java Development
Latest Java Buzz Posts
Latest Java Buzz Posts by Scott Delap
Latest Posts From ClientJava.com

Advertisement

JavaLobby - JOptionPane Can Hold More Than Text
Many people don't seem to know that the existing JOptionPane class ( javax.swing.JOptionPane ), which has all of those nifty static methods for quick dialog opening ( showOptionDialog , showConfirmDialog , showInputDialog , and showMessageDialog ), accepts more than just text as the 'message'. In fact, all of the static methods (as well as the JOptionPane constructor) take an Object as the message, not a String. This is intentional - the BasicOptionPaneUI class considers the message object as not only being some form of object that can be converted to a String, but also whether or not the message object was in fact a component...

Read: JavaLobby - JOptionPane Can Hold More Than Text

Topic: Introduction to JGoodies Binding Previous Topic   Next Topic Topic: 1a Stop a top comment spammer 11

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use