BorderLayout.java (BorderLayout()): New constructor.
* java/awt/BorderLayout.java (BorderLayout()): New constructor. * java/awt/Frame.java (Frame): Pass `null' to Window constructor. * java/awt/Window.java (addNotify): Wrote. (addWindowListener): Wrote. (getLocale): Wrote. (getWarningString): Wrote. (processEvent): Wrote. (processWindowEvent): Wrote. (removeWindowListener): Wrote. (show): Call validate(), setVisible(). (toBack): Wrote. (toFront): Wrote. * java/awt/Toolkit.java (createWindow): Declare. * java/awt/Frame.java (addNotify): Use getToolkit to find toolkit. * java/awt/Component.java (invalidate): Wrote. (isValid): Wrote. (getToolkit): Wrote. * java/awt/Container.java (addContainerListener): Removed unnecessary cast. (removeContainerListener): Likewise. (addImpl): Wrote. (add(Component)): Use it. (add(String,Component)): Likewise. (add(Component,int)): Likewise. (add(Component,Object)): Likewise. (add(Component,Object,int)): Likewise. (doLayout): Wrote. (getAlignmentX): Wrote. (getAlignmentY): Wrote. (getComponentAt): Wrote. (getMaximumSize): Wrote. (invalidate): Wrote. (list(PrintStream,int)): Wrote. (list(PrintWriter,int)): Wrote. (getMinimumSize): Wrote. (getPreferredSize): Wrote. (printComponents): Wrote. (processContainerEvent): Look at containerListener, not componentListener. (remove): Added event processing and peer destruction. (removeAll): Use remove. (removeNotify): Wrote. (validate): Wrote. (validateTree): Wrote. * java/awt/Scrollbar.java (addNotify): Do nothing if peer exists. * java/awt/Label.java (addNotify): Do nothing if peer exists. * java/awt/Container.java (addNotify): Don't create Container peer. * java/awt/Button.java (addNotify): Do nothing if peer exists. From-SVN: r35361
This commit is contained in:
parent
911a71a729
commit
e0a339f785
10 changed files with 375 additions and 91 deletions
|
@ -17,11 +17,13 @@ public class Frame extends Window implements MenuContainer
|
|||
String title;
|
||||
|
||||
public Frame ()
|
||||
{ /* FIXME */ }
|
||||
{
|
||||
super (null);
|
||||
}
|
||||
|
||||
public Frame (String title)
|
||||
{
|
||||
this();
|
||||
super (null);
|
||||
setTitle(title);
|
||||
}
|
||||
|
||||
|
@ -43,13 +45,7 @@ public class Frame extends Window implements MenuContainer
|
|||
public synchronized void addNotify ()
|
||||
{
|
||||
if (peer == null)
|
||||
{
|
||||
FramePeer fpeer = Toolkit.getDefaultToolkit().createFrame(this);
|
||||
// Compiler bug requires cast ??; FIXME?
|
||||
peer = (java.awt.peer.ComponentPeer) fpeer;
|
||||
if (width + height > 0)
|
||||
peer.setBounds(x, y, width, height);
|
||||
}
|
||||
peer = getToolkit ().createFrame (this);
|
||||
super.addNotify();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue