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

No borders on JInternalFrame with GTK look 'n feel and Bluecurve theme

XMLWordPrintable

      FULL PRODUCT VERSION :
      java version "1.6.0_05"
      Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
      Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux localhost 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      The border around the frame is empty

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      launch the test case

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      no transparent region between the black line and the panel.
      ACTUAL -
      When you look at the inner-frame that is in front where it is crossing the inner-frame that is in the back, ther is missing border.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;

      import com.sun.java.swing.plaf.gtk.*;

      public class TestFrame extends JFrame
      {
      public TestFrame()
      {
      JDesktopPane desktop = new JDesktopPane();
      JInternalFrame frame = new JInternalFrame();
      JInternalFrame frame2 = new JInternalFrame();

      frame.setVisible(true);
      frame.setSize(300, 300);
      frame.setLocation(25, 25);
      desktop.add(frame);
      frame2.setVisible(true);
      frame2.setSize(300, 300);
      desktop.add(frame2);
      setContentPane(desktop);

      setSize(500, 500);
      }

      public static void main(String[] args) throws Exception
      {
      SwingUtilities.invokeLater(new Runnable()
      {
      public void run()
      {
      try
      {
      System.setProperty("swing.metacitythemename", "Bluecurve");
      GTKLookAndFeel lookAndFeel = new GTKLookAndFeel();
      UIManager.setLookAndFeel(lookAndFeel);
      }
      catch (Exception e) {}

      new TestFrame().setVisible(true);
      }
      });
      }
      }
      ---------- END SOURCE ----------

            peterz Peter Zhelezniakov
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: