Fixes to MenuBarCtrl.java to address my own cluelessness.

Please don't fix rules.mk.
This commit is contained in:
grail%cafebabe.org 1999-06-18 04:01:53 +00:00
Родитель ca630c9dd5
Коммит 19e8647699
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -30,8 +30,8 @@
# setenv CLASSPATH ${CLASSPATH}:/u/jwz/tmp/grendel/swing-1.1/swingall.jar
# Set these to the correct paths on your system
MOZILLA_BUILD = /disk2/mozilla
GRENDEL_BUILD = /disk2/mozilla/grendel
MOZILLA_BUILD = /export/home/grail/codemonkey/mozilla/mozilla
GRENDEL_BUILD = /export/home/grail/codemonkey/mozilla/grendel
MOZILLA_HOME = /usr/local/netscape-4.5
JAVAC = javac
@ -42,7 +42,7 @@ OBJS = $(subst .java,.class,$(SRCS))
.SUFFIXES: .java .class
.java.class:
$(JAVAC) -J-mx64m -classpath $(MOZILLA_BUILD):$(GRENDEL_BUILD) -g $*.java
$(JAVAC) -J-mx64m -g $*.java
all:: $(OBJS)

Просмотреть файл

@ -71,7 +71,7 @@ public class MenuBarCtrl extends JMenuBar implements Control {
* @param name the control's name
* @param component the control
*/
public void addItemByName(String name, Component component) {
public void addItemByName(String name, JMenuItem component) {
controls.put(name, component);
add(component);
}