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

JInternalFrame title display not consistent with JFrame

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.3.0
    • client-libs



      Name: skT88420 Date: 10/15/99


      1. Steps to reproduce the problem.
         Just run the source code provided.

      2. SOURCE CODE:
      import javax.swing.*;

      public class titleBug extends JFrame {

         public titleBug() {
            setTitle("very very very very long Frame Title");
            setBounds(30, 30, 200, 300);
            JInternalFrame frame = new JInternalFrame("very very very very long InternalFrame Title", true, true, true, true);
            frame.setSize(150, 200);
            frame.setLocation(30, 30);
            frame.setVisible(true);
            JDesktopPane desktop = new JDesktopPane();
            desktop.add(frame);
            setContentPane(desktop);
         }

         public static void main(String[] args) {
            titleBug window = new titleBug();
            window.setVisible(true);
         }
      }

      3. The error is:
         When the title text of the internal frame should be truncated
         and followed by "...", just like the JFrame.
         This is how a MDI child window behaves in MS File Manager.

      5. Version: JDK-1.2.2-W
      (Review ID: 96622)
      ======================================================================

            hgajewsksunw Hania Gajewska (Inactive)
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: