🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8208

Customizing JOptionPane

#8208
From: Ernesto Bascon Pantoja
Date: Fri, 13 Oct 2000 00:00
18 lines
1038 bytes
Hi:

Is it possible to customize the JOptionPane class, i.e., change the text
of defined buttons ("Aceptar" instead "OK", etc.), change the font size
of
message, change the background and foreground of the message, etc.?

I tried to modify some properties of UIManager
"JOptionPane.messageFont", "JOptionPane.messageBackground" and
"JOptionPane.messageForeground", but just the last one works using
Windows Look And Feel.

Any hint will be helpful.

Thanx


Ernesto
Technical Details
Message-ID: <39E730DD.EE4E12A@ucbcba.edu.bo>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,fe3f49ab79d96316,start
X-Google-Attributes: gid111d45,public
From: Ernesto Bascon Pantoja <bascone@ucbcba.edu.bo>
Subject: Customizing JOptionPane
Date: 2000/10/13
Message-ID: <39E730DD.EE4E12A@ucbcba.edu.bo>
X-Deja-AN: 681045362
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: IIIA - pirAMide Project - UCB Cbba.
Mime-Version: 1.0
Reply-To: bascone@ucbcba.edu.bo
Newsgroups: borland.public.jbuilder.java.swing