[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Igor V. Stolyarov updated HARMONY-4630:
---------------------------------------
Attachment: H-4630.patch
Attached patch flushes all XLib's drawing requests which weren't executed yet.
> [classlib][swing] require extra events to display up-to-date image in Fedora
> ----------------------------------------------------------------------------
>
> Key: HARMONY-4630
> URL: https://issues.apache.org/jira/browse/HARMONY-4630
> Project: Harmony
> Issue Type: Bug
> Environment: Linux32(Fedora)
> Reporter: Chunrong Lai
> Attachments: H-4630.patch, Harmony.lnx.jpg, RI.lnx.JPG
>
>
> This issue does not happen in Win32.
> Here is a simple reproducer.
> import javax.swing.*;
> import java.awt.Dimension;
> public class jtpTest {
> public static void main(String argv[]) {
> JFrame frame = new JFrame("jtpTest");
> JSplitPane split = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
> JTabbedPane jtp = new JTabbedPane();
> JScrollPane jsp = new JScrollPane();
> JScrollPane jsp2 = new JScrollPane();
> frame.setSize(new Dimension(400, 300));
> frame.add(split);
> split.setTopComponent(jtp);
> jtp.addTab("ScrollTest", jsp);
> jtp.addTab("ScrollTest2", jsp2);
> jtp.setSelectedIndex(jtp.getTabCount() - 1);
> jtp.requestFocus();
> frame.setVisible(true);
> }
> }
> The ScrollPane can not be displayed unless an extra valid event happens. For example,
some keyboard events, mouse moving in, etc.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|