harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chunrong Lai (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-4613) [classlib][swing] SetOptions/SetMessage of JOptionPane not implemented
Date Thu, 09 Aug 2007 07:19:43 GMT

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

Chunrong Lai updated HARMONY-4613:
----------------------------------

    Attachment: RI.JPG
                Harmony.jpg

> [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
>         Attachments: 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