harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Pavlenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4613) [classlib][swing] SetOptions/SetMessage of JOptionPane not implemented
Date Wed, 22 Aug 2007 11:32:37 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-4613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Pavlenko updated HARMONY-4613:
-------------------------------------

    Attachment: HARMONY-4613-BasicOptionPaneUI.patch
                HARMONY-4613-revert.patch

Could someone roll back the previous fix and apply this one instead? This patch modifies BasicOptionPaneUI
to perform all required updates from the corresponding event listener instead of UI reinstalling.

> [classlib][swing] SetOptions/SetMessage of JOptionPane not implemented
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-4613
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4613
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: win32
>            Reporter: Chunrong Lai
>            Assignee: Alexey Petrenko
>         Attachments: HARMONY-4613-BasicOptionPaneUI.patch, HARMONY-4613-revert.patch,
HARMONY-4613.patch, Harmony.jpg, RI.JPG
>
>
> Here's the simple test demonstrating the problem: 
> import javax.swing.*;
> public class OptionPaneTest {
>   public static void main(String[] args) {
>         JFrame frame = new JFrame("OPTest");
>         JButton yesButton = new JButton("Yes");
>         JButton noButton = new JButton("No");
>         JButton[]   buttons = {yesButton, noButton};
>         JDialog dialog = new JDialog(frame, true);
>         dialog.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
>         JOptionPane optionPane = new JOptionPane();;
>         optionPane.setMessageType(JOptionPane.PLAIN_MESSAGE);
>         optionPane.setOptions(buttons);
>         optionPane.setMessage("Can we show the dislog?");
>         dialog.setTitle("JOptionPane Test");
>         dialog.getContentPane().add(optionPane);
>         dialog.pack();
>         dialog.setLocationRelativeTo(dialog.getParent());
>         dialog.show();
>   }
> }
>  

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