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] Created: (HARMONY-4609) [classlib][swing] fixed default component in JSplitPane
Date Tue, 07 Aug 2007 14:09:59 GMT
[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



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.


Mime
View raw message