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

JCheckBox: icon set with setRolloverSelectedIcon() doesn't appear to be used

XMLWordPrintable

    • beta
    • generic
    • generic

      From: Jeff Borton <###@###.###>
      To: "'###@###.###'" <###@###.###>
      Subject: FW: Bug with JCheckBox
      Date: Tue, 21 Apr 1998 09:12:53 -0400

      Hello,
      I sent this earilier and didn't receive a reply. And I want to
      add to it. It appears that any of the alternate states of the selected
      checkbox do not appear: rollover, dissabled.
      Is there a quick fix for this? I have many places where this is
      critical to my program. And we are about to ship. If I can't get it
      fixed I'll have to write a ton of patch code.

      Thanks,
      Jeff
      > -----Original Message-----
      > From: Jeff Borton
      > Sent: Thursday, March 12, 1998 11:06 AM
      > To: '###@###.###'
      > Subject: Bug with JCheckBox
      >
      > Hello,
      > Possible bug with JCheckBox (or JToggleButton). The
      > icon set with setRolloverSelectedIcon() doesn't appear to be
      > used. It looks like BasicToggleButtonUI creates a
      > BasicButtonListener.
      > BasicButtonListener:
      > public void mouseEntered(MouseEvent e) {
      > AbstractButton b = (AbstractButton) e.getSource();
      > if(b.isRolloverEnabled()) {
      > b.getModel().setRollover(true);
      > }
      > };
      >
      > public void mouseExited(MouseEvent e) {
      > AbstractButton b = (AbstractButton) e.getSource();
      > if(b.isRolloverEnabled()) {
      > b.getModel().setRollover(false);
      > }
      > };
      >
      > doesn't ever use the rolloverSelectedIcon.
      > Am I missing something here?
      >
      > Swing Version 1.0
      >
      > Thanks,
      > Jeff
      >
      > Jeff Borton ###@###.###
      > (517) 347-3219

            jeff Jeff Dinkins
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: