You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Denis Kishenko (JIRA)" <ji...@apache.org> on 2006/11/27 13:49:23 UTC

[jira] Created: (HARMONY-2333) [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons

[classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons
-----------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2333
                 URL: http://issues.apache.org/jira/browse/HARMONY-2333
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko
         Attachments: HARMONY-2333-actual.PNG

Swing (Metal) title pane shouldn't show buttons (Iconify, Maximize) for states
that are not supported by Toolkit.

To run the test use: java -Dawt.toolkit=MyToolkit Test

We have to check if corresponding window states are supported by the ToolKit
when adding buttons to the title pane (use Toolkit.isFrameStateSupported()).

========== Test ==================
import javax.swing.*;

public class Test {
    public static void main(String args[]) throws Exception {
        JFrame.setDefaultLookAndFeelDecorated(true);
        final JFrame f = new JFrame("FrameTest");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setBounds(250, 100, 200, 200);
        f.setVisible(true);
    }
}

===== MyToolkit ==========
public class MyToolkit extends sun.awt.windows.WToolkit {
    public boolean isFrameStateSupported(int state) {
        return false;
    }
}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2333) [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2333:
-------------------------------------

    Priority: Major  (was: Minor)

> [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2333
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2333
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: HARMONY-2333-actual.PNG, HARMONY-2333-expected.PNG
>
>
> Swing (Metal) title pane shouldn't show buttons (Iconify, Maximize) for states
> that are not supported by Toolkit.
> To run the test use: java -Dawt.toolkit=MyToolkit Test
> We have to check if corresponding window states are supported by the ToolKit
> when adding buttons to the title pane (use Toolkit.isFrameStateSupported()).
> ========== Test ==================
> import javax.swing.*;
> public class Test {
>     public static void main(String args[]) throws Exception {
>         JFrame.setDefaultLookAndFeelDecorated(true);
>         final JFrame f = new JFrame("FrameTest");
>         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>         f.setBounds(250, 100, 200, 200);
>         f.setVisible(true);
>     }
> }
> ===== MyToolkit ==========
> public class MyToolkit extends sun.awt.windows.WToolkit {
>     public boolean isFrameStateSupported(int state) {
>         return false;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HARMONY-2333) [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons

Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2333?page=all ]

Denis Kishenko updated HARMONY-2333:
------------------------------------

    Attachment: HARMONY-2333-expected.PNG

> [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2333
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2333
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: HARMONY-2333-actual.PNG, HARMONY-2333-expected.PNG
>
>
> Swing (Metal) title pane shouldn't show buttons (Iconify, Maximize) for states
> that are not supported by Toolkit.
> To run the test use: java -Dawt.toolkit=MyToolkit Test
> We have to check if corresponding window states are supported by the ToolKit
> when adding buttons to the title pane (use Toolkit.isFrameStateSupported()).
> ========== Test ==================
> import javax.swing.*;
> public class Test {
>     public static void main(String args[]) throws Exception {
>         JFrame.setDefaultLookAndFeelDecorated(true);
>         final JFrame f = new JFrame("FrameTest");
>         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>         f.setBounds(250, 100, 200, 200);
>         f.setVisible(true);
>     }
> }
> ===== MyToolkit ==========
> public class MyToolkit extends sun.awt.windows.WToolkit {
>     public boolean isFrameStateSupported(int state) {
>         return false;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2333) [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons

Posted by "Denis Kishenko (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-2333?page=all ]

Denis Kishenko updated HARMONY-2333:
------------------------------------

    Attachment: HARMONY-2333-actual.PNG

> [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2333
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2333
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>         Attachments: HARMONY-2333-actual.PNG
>
>
> Swing (Metal) title pane shouldn't show buttons (Iconify, Maximize) for states
> that are not supported by Toolkit.
> To run the test use: java -Dawt.toolkit=MyToolkit Test
> We have to check if corresponding window states are supported by the ToolKit
> when adding buttons to the title pane (use Toolkit.isFrameStateSupported()).
> ========== Test ==================
> import javax.swing.*;
> public class Test {
>     public static void main(String args[]) throws Exception {
>         JFrame.setDefaultLookAndFeelDecorated(true);
>         final JFrame f = new JFrame("FrameTest");
>         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>         f.setBounds(250, 100, 200, 200);
>         f.setVisible(true);
>     }
> }
> ===== MyToolkit ==========
> public class MyToolkit extends sun.awt.windows.WToolkit {
>     public boolean isFrameStateSupported(int state) {
>         return false;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2333) [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2333:
-------------------------------------

    Priority: Minor  (was: Major)

> [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2333
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2333
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Denis Kishenko
>            Priority: Minor
>         Attachments: HARMONY-2333-actual.PNG, HARMONY-2333-expected.PNG
>
>
> Swing (Metal) title pane shouldn't show buttons (Iconify, Maximize) for states
> that are not supported by Toolkit.
> To run the test use: java -Dawt.toolkit=MyToolkit Test
> We have to check if corresponding window states are supported by the ToolKit
> when adding buttons to the title pane (use Toolkit.isFrameStateSupported()).
> ========== Test ==================
> import javax.swing.*;
> public class Test {
>     public static void main(String args[]) throws Exception {
>         JFrame.setDefaultLookAndFeelDecorated(true);
>         final JFrame f = new JFrame("FrameTest");
>         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
>         f.setBounds(250, 100, 200, 200);
>         f.setVisible(true);
>     }
> }
> ===== MyToolkit ==========
> public class MyToolkit extends sun.awt.windows.WToolkit {
>     public boolean isFrameStateSupported(int state) {
>         return false;
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.