bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/39135] New: CardLayout bug in gotoComponent for NEXT and PREV s


From: bugbuster at gmx dot net
Subject: [Bug awt/39135] New: CardLayout bug in gotoComponent for NEXT and PREV since rec 1.18
Date: 9 Feb 2009 03:52:45 -0000

Revision 1.18 of the CardLayout introduces this else branch here into the
gotoComponent

              } else 
                {
                  comps[i].setVisible(true);
                }

which makes a currently invisible component visible. So if components 0,1,2,3
are INvisible at the moment, they are all made visible. The next time one wants
to make the 'next' component visible, the algorithm sees that component 0 is
visible and will assume that this is the currently visible component and make
component '1' visible. So, just remove the setVisible() branch.


Cheers!


-- 
           Summary: CardLayout bug in gotoComponent for NEXT and PREV since
                    rec 1.18
           Product: classpath
           Version: 0.97.2
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bugbuster at gmx dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39135





reply via email to

[Prev in Thread] Current Thread [Next in Thread]