JFrame.setResizable(false) brings unexpected behaviour in j2sdk 8

Petr Pchelko petr.pchelko at oracle.com
Thu Jan 23 11:28:40 PST 2014


Hello, 

Yes, this indeed is a regression in JDK 8.
I’ve created an issue for you: https://bugs.openjdk.java.net/browse/JDK-8032595

Thank you for reporting this problem.
With best regards. Petr.

21 янв. 2014 г., в 6:22 до полудня, niagarasoft20-macosxportdev at yahoo.com написал(а):

> import javax.swing.*;
> import java.awt.*;
> 
> public class JFramePositionTest {
> 
>     public static void main (String args[]){
>         new JFramePositionTest();
>     }
> 
>     public JFramePositionTest(){
>         JFrame aFrame = new JFrame();
>         aFrame.setSize(300,300);
>         aFrame.setResizable(false);
>         aFrame.setVisible(true);
>         //aFrame.setResizable(false); //COMMENT ABOVE setResizable(false) method and CALL THE CODE HERE THEN THERE'S NO PROBLEM
>         aFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
> 
>     }
> 
> }



More information about the macosx-port-dev mailing list