JDK-4281667 : JInternalFrame title display not consistent with JFrame
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-10-15
  • Updated: 1999-10-28
  • Resolved: 1999-10-28
Related Reports
Duplicate :  
Description

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) 
======================================================================

Comments
WORK AROUND Name: skT88420 Date: 10/15/99 None. ======================================================================
11-06-2004

EVALUATION This is not a regression in kestrel-beta; the bug exists in previous all previous releases. Furthermore, there is already a bug report filed about it (4134077), so I am closing this as a duplicate. hania.gajewska@Eng 1999-10-28
28-10-1999