Hi: You must change its UI (OptionPaneUI).
Take a look to javax.swing.plaf.OptionPaneUI, javax.swing.plaf.basic.OptionPaneUI and javax.swing.plaf.metal.OptionPaneUI to see how it compound JOptionPane object. Bye. J. ----- Original Message ----- From: "Gregg Friedman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 02, 2003 9:56 PM Subject: [Juglist] Setting Layout and Size of a JOptionPane > Anyone, > > Can anyone tell me the easiest way to set the size and layout of a > JOptionPane that is called using the static method showMessageDialog? Is the > only solution to create a subclass and override JOptionPane's methods or is > there an easier way? > > Thanks in advance > Gregg > > > _______________________________________________ > Juglist mailing list > [EMAIL PROTECTED] > http://trijug.org/mailman/listinfo/juglist_trijug.org > _______________________________________________ Juglist mailing list [EMAIL PROTECTED] http://trijug.org/mailman/listinfo/juglist_trijug.org
