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

Solaris: XIM status area support code has to move to Window class (peer&native)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:

      Description

      Solaris only:

      Currently, the code for supporting the XIM status area for Motif text widget is in Frame and Dialog. This causes problems to support peered text components in JWindow which will not have the proper XIM status area support.

      The following program (derived from 4172118 with TextField use) demonstrates the problem.

      -- JTextFocus.java --
      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;

      public class JTextFocus {
          JWindow win;
          JTextField tf1;
          TextField tf2;

          public JTextFocus() {
              win = new JWindow();
              tf1 = new JTextField("ABCDEFGH", 10);
              tf2 = new TextField("12345678", 10);
              win.getContentPane().setLayout(new FlowLayout());
              win.getContentPane().add(tf1);
              win.getContentPane().add(tf2);
              win.pack();
              win.show();
          }

          public static void main(String args[]) {
              new JTextFocus();
          }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yyamasaksunw Yuriko Yamasaki (Inactive)
                Reporter:
                okutsu Masayoshi Okutsu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: