Font.java (isBold): Fix syntax error.

* java/awt/Font.java(isBold): Fix syntax error.
	(isItalic): ditto.
	* java/awt/Frame.java(postEvent): ditto.
	* java/awt/Menu.java(postEvent): ditto.
	* java/awt/MenuBar.java(postEvent): ditto.
	* java/awt/Toolkit.java(init): Included a stub.

From-SVN: r32723
This commit is contained in:
Warren Levy 2000-03-24 09:09:56 +00:00 committed by Warren Levy
parent 1a3a98268d
commit 111393dfd6
6 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,12 @@
2000-03-24 Warren Levy <warrenl@cygnus.com>
* java/awt/Font.java(isBold): Fix syntax error.
(isItalic): ditto.
* java/awt/Frame.java(postEvent): ditto.
* java/awt/Menu.java(postEvent): ditto.
* java/awt/MenuBar.java(postEvent): ditto.
* java/awt/Toolkit.java(init): Included a stub.
2000-03-21 Bryce McKinlay <bryce@albatross.co.nz> 2000-03-21 Bryce McKinlay <bryce@albatross.co.nz>
* java/awt/Event.java: Add all the event type constants. * java/awt/Event.java: Add all the event type constants.

View file

@ -52,7 +52,7 @@ public class Font
public boolean isBold() public boolean isBold()
{ {
if (style & BOLD == BOLD) if ((style & BOLD) == BOLD)
return true; return true;
return false; return false;
@ -60,7 +60,7 @@ public class Font
public boolean isItalic() public boolean isItalic()
{ {
if (style & ITALIC == ITALIC) if ((style & ITALIC) == ITALIC)
return true; return true;
return false; return false;

View file

@ -54,6 +54,6 @@ public class Frame extends Window implements MenuContainer
} }
public Font getFont() { return null; } // FIXME public Font getFont() { return null; } // FIXME
public boolean postEvent(Event evt) { return null; } // FIXME public boolean postEvent(Event evt) { return false; } // FIXME
public void remove(MenuComponent comp) { } // FIXME public void remove(MenuComponent comp) { } // FIXME
} }

View file

@ -28,6 +28,6 @@ public class Menu extends MenuItem implements MenuContainer
} }
public Font getFont() { return null; } // FIXME public Font getFont() { return null; } // FIXME
public boolean postEvent(Event evt) { return null; } // FIXME public boolean postEvent(Event evt) { return false; } // FIXME
public void remove(MenuComponent comp) { } // FIXME public void remove(MenuComponent comp) { } // FIXME
} }

View file

@ -43,5 +43,5 @@ public class MenuBar extends MenuComponent implements MenuContainer
} }
public Font getFont() { return null; } // FIXME public Font getFont() { return null; } // FIXME
public boolean postEvent(Event evt) { return null; } // FIXME public boolean postEvent(Event evt) { return false; } // FIXME
} }

View file

@ -26,6 +26,7 @@ public abstract class Toolkit
protected abstract FramePeer createFrame(Frame target); protected abstract FramePeer createFrame(Frame target);
public abstract Image getImage(URL url); public abstract Image getImage(URL url);
private static native void init(); private static void init() { }
// private static native void init();
// static { init(); } // static { init(); }
} }