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/08 15:46:59 UTC

[jira] Assigned: (HARMONY-4609) [classlib][swing] fixed default component in JSplitPane

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

Alexey Petrenko reassigned HARMONY-4609:
----------------------------------------

    Assignee: Alexey Petrenko

> [classlib][swing] fixed default component in JSplitPane
> -------------------------------------------------------
>
>                 Key: HARMONY-4609
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4609
>             Project: Harmony
>          Issue Type: Bug
>         Environment: win32
>            Reporter: Chunrong Lai
>            Assignee: Alexey Petrenko
>         Attachments: h4609.fixed.patch, Harmony.JPG, RI.JPG
>
>
> Here is a simple reproducer.
> import javax.swing.JFrame;
> import javax.swing.JSplitPane;
> import javax.swing.JTextField;
> import java.awt.Dimension;
> public class Test {
>   public static void main (String argv[]) {
>     JFrame frame = new JFrame("SplitPaneTest");
>     JSplitPane   split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
>     JTextField  jtp   = new JTextField();
>     frame.setSize(new Dimension(100, 100));
>     split.setLeftComponent(jtp);
>     frame.add(split);
>     frame.setVisible(true);
>   }
> }
> The textfield can not be displayed because Harmony only displays the rightComponent by default.
> It is also not proper to change the default component to leftComponent because the rightComponent would not be displayed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.