-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
generic
-
generic
Name: krT82822 Date: 01/11/99
=20
/*
Hello again!
javax.swing.JFrame in jdk1.2 contains a method setHelpMenu() which has
not been implemented. When called it throws an Error as indicated below.
C:\sun\jdk1.2\dog>java JFrameError
Exception in thread "main" java.lang.Error: setHelpMenu() not yet implement=
ed.
at javax.swing.JMenuBar.setHelpMenu(JMenuBar.java:191)
at JFrameError.<init>(JFrameError.java:18)
at JFrameError.main(JFrameError.java:8)
I will be waiting for the fix :-)
/Douglas Wikstr=F6m
*/
import javax.swing.*;
import javax.swing.filechooser.*;
import java.awt.*;
import java.awt.event.*;
public class JFrameError extends JFrame {
public static void main(String args[]) {
JFrameError jfe =3D new JFrameError();
jfe.pack();
jfe.show();
}
public JFrameError() {
super("");
JMenuBar jmb =3D new JMenuBar();
JMenu helpMenu =3D new JMenu("Help");
JMenuItem helpAbout =3D new JMenuItem("About this product...");
helpMenu.add(helpAbout);
jmb.setHelpMenu(helpMenu);
}
}
(Review ID: 52426)
======================================================================
- duplicates
-
JDK-4087846 JMenuBar.setHelpMenu() => "not yet implemented"
-
- Open
-