Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4176724

JInternalFrame System menu not translated

XMLWordPrintable

    • 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();
          }

      ======================================================================

            joutwatesunw Joshua Outwater (Inactive)
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: