You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Chunrong Lai (JIRA)" <ji...@apache.org> on 2007/08/14 15:53:30 UTC
[jira] Created: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
[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
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.
[jira] Updated: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko updated HARMONY-4630:
-------------------------------------
Patch Info: [Patch Available]
> [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
> Assignee: Alexey Petrenko
> 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.
[jira] Commented: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519917 ]
Igor V. Stolyarov commented on HARMONY-4630:
--------------------------------------------
Hello Chunrong.
Could you try your reproducer on new Harmony build. I easy reproduced that issue on build r563769, but that issue doesn't reproduce on r566078.
Thanks,
Igor
> [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: 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.
[jira] Commented: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12519923 ]
Igor V. Stolyarov commented on HARMONY-4630:
--------------------------------------------
Hi Chunrong,
I nevertheless reproduced HARMONY-4630 on New Harmony build.
That issue reproduces only when mouse cursor placed in area where will appear JFrame.
I'm working on fix for that issue.
Thanks,
Igor
> [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: 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.
[jira] Commented: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522381 ]
Igor V. Stolyarov commented on HARMONY-4630:
--------------------------------------------
Works for me.
Thank you Alexey.
> [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
> Assignee: Alexey Petrenko
> 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.
[jira] Closed: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko closed HARMONY-4630.
------------------------------------
> [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
> Assignee: Alexey Petrenko
> 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.
[jira] Assigned: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko reassigned HARMONY-4630:
----------------------------------------
Assignee: Alexey Petrenko
> [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
> Assignee: Alexey Petrenko
> 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.
[jira] Resolved: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Petrenko resolved HARMONY-4630.
--------------------------------------
Resolution: Fixed
The patch has been applied.
Please verify.
> [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
> Assignee: Alexey Petrenko
> 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.
[jira] Updated: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Chunrong Lai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chunrong Lai updated HARMONY-4630:
----------------------------------
Attachment: RI.lnx.JPG
Harmony.lnx.jpg
> [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: 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.
[jira] Updated: (HARMONY-4630) [classlib][swing] require extra
events to display up-to-date image in Fedora
Posted by "Igor V. Stolyarov (JIRA)" <ji...@apache.org>.
[ 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.