-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.2.0
-
sparc
-
solaris_2.5.1
Name: aaC67449 Date: 12/08/97
Constructors JRadioButtonMenuItem(Icon) and RadioButtonMenuItem(String,Icon) don't set Icon.
------------Example--------
import java.awt.swing.*;
import java.awt.swing.basic.*;
public class Test {
public static void main( String argv[] ) {
Icon i=BasicIconFactory.createFrameIconifyIcon();
JRadioButtonMenuItem f=new JRadioButtonMenuItem (i);
if(!f.getIcon().equals(i))
System.out.println("FAILED");
else
System.out.println("PASSED");
f=new JRadioButtonMenuItem ("",i);
if(!f.getIcon().equals(i))
System.out.println("FAILED");
else
System.out.println("PASSED");
}
}
------------Output----------
FAILED
FAILED
------
======================================================================
- duplicates
-
JDK-4096563 Left-arrow, right-arrow keys do not work with JMenuBar
-
- Resolved
-