JDK-4311462 : unix: Undocked JToolBar does not check parent window state.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2000-02-10
  • Updated: 2001-08-17
  • Resolved: 2001-08-17
Related Reports
Duplicate :  
Description

Name: asR10013			Date: 02/09/2000



   Code below shows JFrame with JToolbar in it. Drag out JToolBar and then 
minimize the main window. Now move toolbar by its border to the position 
where the main window was situated. JToolBar will become docked as if 
main window was not minimized.

----------------------------- test.java ------------------------------
import javax.swing.*;

class test {
   public static void main(String args[]) {
      JFrame jf = new JFrame(); // will have BorderLayout as default LayoutManager
      jf.setSize(400,300);
      JToolBar jtb = new JToolBar();
      jtb.add(new JButton("1"));
      jtb.add(new JButton("2"));
      jtb.add(new JButton("3"));      
      jf.getContentPane().add(jtb);
      jf.show();
   }
}

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

Comments
EVALUATION Name: apR10133 Date: 08/17/2001 The bug is not reproducible due to the fix for 4418849. So, I close it as duplicate. ###@###.### ======================================================================
24-08-2004