Name: gm110360 Date: 04/16/2004
A DESCRIPTION OF THE REQUEST :
For unsigned applets, a pop up window (such as a JDialog) has a footer label
that says "Java Applet Window". I understand that this is a security mechanism
and cannot be easily disabled.
But is it possible that this label have the same background color as the rest
of the window --veither by being able to set a particular property or by it
taking on the background color of the OptionPane/Panel?
JUSTIFICATION :
When we change the color of the Panel/OptionPane, it looks ugly if
the footer Label is of a different color.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The footer label should take on the same color as the OptionPane or Panel or
of it's own defined property.
ACTUAL -
Currently, the footer label has it's own color.
---------- BEGIN SOURCE ----------
***************** Applet code: *******************************************
public class TestApplet extends JApplet {
public void init() {
super.init();
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (Exception e) {
System.out.println("Exception; " + e.getMessage());
}
ColorUIResource c = new ColorUIResource(236, 236, 236);
UIManager.put("OptionPane.background", c);
UIManager.put("Panel.background", c);
JPanel pane = new JPanel();
setContentPane(pane);
JOptionPane.showMessageDialog(pane, "Testing!", "", JOptionPane.INFORMATION_MESSAGE);
}
********************* html code *********************************************
<html>
<body>
<h2>Run TestApplet</h2>
<P>
<applet code="TestApplet.class"
width=400
height=50>
</applet>
</body>
</html>
---------- END SOURCE ----------
(Incident Review ID: 229421)
======================================================================