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

Undecorated frame is not painted on OEL7(Gnome3).

XMLWordPrintable

    • b169
    • linux_redhat_7.0

        The next simple application:

        public class Undecorated {
            public static void main(String[] args) throws Exception {
                SwingUtilities.invokeAndWait(() -> {
                    JFrame frame = new JFrame();
                    frame.setUndecorated(true);
                    frame.setSize(100, 100);
                    Container content = frame.getContentPane();
                    content.add(new JButton("test"), BorderLayout.NORTH);
                    content.setBackground(Color.red);
                    frame.setVisible(true);
                });
            }
        }

        produces a frame with gray background on OEL7. No Swing controls are painted.

              ssadetsky Semyon Sadetsky (Inactive)
              ssadetsky Semyon Sadetsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: