зеркало из https://github.com/mozilla/gecko-dev.git
Fixes to MenuBarCtrl.java to address my own cluelessness.
Please don't fix rules.mk.
This commit is contained in:
Родитель
ca630c9dd5
Коммит
19e8647699
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче