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

Nimbus L&F : Incorrect painting at the right top corner of the frame when destoppane is added to

    Details

    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      x86
    • OS:
      windows_vista

      Description

      I have a frame , which contains a desktopPane. I can see the Incorrect painting at the right top corner of the frame. This is not seen on other LookAndFeel. I have attached the screen shot of the same. I tried even resizing the frame & it disappears only when the size of the frame is very small.

      Step to reproduce :-
      -----------------------
      1) Run the below testcase.
      2) Observe that top right corner of the frame. you will a while patch . If you see the same then the bug is reproduced.

      I tested this on jdk1.6.0_10 b09.

      ---------- TestCase -----------
      import java.awt.*;
      import javax.swing.JFrame;
      import javax.swing.JDesktopPane;

      public class NimbusFrameBug {
      JFrame frame = null;
      public static void main(String arga[]) {
      javax.swing.SwingUtilities.invokeLater(new Runnable(){
      public void run(){
      new NimbusFrameBug();
      }
      });
      }

      NimbusFrameBug(){

      frame = new JFrame("NimbusFrameBug");
      int inset = 50;
      Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
      frame.setBounds(inset, inset,
      screenSize.width - inset*2,
      screenSize.height - inset*2);
      JDesktopPane desktop = new JDesktopPane();
      frame.setContentPane(desktop);
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);

      }
      }
      --------------------------------

        Attachments

          Activity

            People

            • Assignee:
              jasper Jasper Potts
              Reporter:
              lpremkumsunw Lawrence Premkumar1 (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: