-
Bug
-
Resolution: Fixed
-
P4
-
1.1.7, 1.2.0, 1.2.2
-
beta
-
x86
-
windows_nt
Name: mf23781 Date: 09/28/98
*Symptoms:
JInternalFrame's System Menu is not translated. It is still English when
running in a non-English locale.
*Test case:
//Test case for JInternalFrame's system menu not translated
//
import java.awt.*;
import com.sun.java.swing.*;
public class SystemMenuTest
{
public static void main(String[] argv)
{
try
{
UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
}
catch (Exception e){}
SystemMenuTest aTest = new SystemMenuTest();
aTest.createWindows();
}
void createWindows()
{
//create frame, content pane
JFrame frame = new JFrame();
frame.setSize(new Dimension(400,400));
frame.setContentPane(new JDesktopPane());
//create a JInternalFrame
JInternalFrame aInternalWindow = new JInternalFrame(
"JInternalFrame's System Menu Locale Problem Test",
true, true, true, true);
aInternalWindow.setBounds(new Rectangle(0, 0, 200, 200));
//add the internal window to the desktop pane
frame.getContentPane().add(aInternalWindow,
JDesktopPane.PALETTE_LAYER);
//show the windows
frame.show();
}
======================================================================