Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4279683

many components do not refresh correctly on windows 98

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 1.2.1
    • client-libs

      Many of the swing components update slow or not at all when run on windows 98. We are using production jdk 1.2.1 FCS. Following test case displays two radio buttons. Click them back and forth a few times and suddenly they no longer update. Neither one shows a selected state. Many other refresh problems, but I wanted to keep the test case simple.

      import java.awt.*;
      import javax.swing.*;
      import java.util.*;

      class RadioTest extends JFrame {

          public RadioTest() {
              JPanel p = new JPanel();

              JRadioButton oldest = new JRadioButton("Forward");
              JRadioButton latest = new JRadioButton("Backward");
              ButtonGroup group3 = new ButtonGroup();
              group3.add(oldest);
              group3.add(latest);
              latest.setSelected(true);

              p.add(oldest);
              p.add(latest);
              getContentPane().add(p);
          }

          public static void main(String[] args) {
              RadioTest rt = new RadioTest();
              rt.pack();
              rt.validate();
              rt.show();
          }
      }

            sswingtrsunw Swingtraq Swingtraq (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: