harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2333) [classlib][swing] Swing title pane for JFrame, JDialog should check if window states are supported when showing buttons
Date Wed, 14 Mar 2007 14:36:10 GMT

     [ 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.


Mime
View raw message