You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/08/13 13:43:43 UTC

[jira] Assigned: (HARMONY-4613) [classlib][swing] SetOptions/SetMessage of JOptionPane not implemented

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

Alexey Petrenko reassigned HARMONY-4613:
----------------------------------------

    Assignee: Alexey Petrenko

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