bug-classpath
[Top][All Lists]
Advanced

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

[bug-classpath] [bug #13567] swing: 100  pu usage with JList inside JScr


From: Timo Lindfors
Subject: [bug-classpath] [bug #13567] swing: 100  pu usage with JList inside JScrollPane
Date: Tue, 28 Jun 2005 19:54:56 +0000
User-agent: Elinks

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13567>

                 Summary: swing: 100% cpu usage with JList inside JScrollPane
                 Project: classpath
            Submitted by: lindi
            Submitted on: Tue 06/28/05 at 19:54
                Category: classpath
                Severity: 3 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

Steps to reproduce:
1. Compile and run the attached testcase.

Expected results:
1. A window with an empty JList shows up.

Actual results:
1. A window with an empty (somewhat smaller than expected) JList shows up. All
elements seem to repainted constantly resulting in 100% cpu usage.

Testcase:
import javax.swing.*;
import java.awt.*;
public class testcase extends JFrame {
        public static void main(String[] args) {
                new testcase();
        }
        public testcase() {
                String[] data = {};
                JList list = new JList(data);
                JScrollPane sp = new JScrollPane(list);
                this.setContentPane(sp);
                this.pack();
                this.setVisible(true);
                list.updateUI();
        }
}

This testcase was reduced from the GUI of the omniscient debugger.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13567>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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