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/22 13:36:31 UTC
[jira] Reopened: (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 reopened HARMONY-4613:
--------------------------------------
Thanks, Andrey.
> [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.