Checkbox.java, [...]: New versions from classpath.

2003-05-25  Michael Koch  <konqueror@gmx.de>

	* java/awt/Checkbox.java,
	java/awt/Dialog.java,
	java/awt/Font.java,
	java/awt/Frame.java,
	java/awt/ScrollPaneAdjustable.java,
	java/awt/Scrollbar.java,
	java/awt/Window.java:
	New versions from classpath.

From-SVN: r67164
This commit is contained in:
Michael Koch 2003-05-25 11:24:27 +00:00 committed by Michael Koch
parent ef8855d7a0
commit eceea3010f
8 changed files with 232 additions and 16 deletions

View file

@ -44,11 +44,11 @@ import java.awt.peer.ContainerPeer;
import java.awt.peer.ComponentPeer;
/**
* A dialog box widget class.
*
* @author Aaron M. Renn (arenn@urbanophile.com)
* @author Tom Tromey <tromey@redhat.com>
*/
* A dialog box widget class.
*
* @author Aaron M. Renn <arenn@urbanophile.com>
* @author Tom Tromey <tromey@redhat.com>
*/
public class Dialog extends Window
{
@ -81,6 +81,11 @@ private boolean resizable;
*/
private String title;
/**
* This field indicates whether the dialog is undecorated or not.
*/
private boolean undecorated = false;
/*************************************************************************/
/*
@ -395,5 +400,30 @@ paramString()
",resizable=" + resizable + "," + super.paramString());
}
/**
* Returns whether this frame is undecorated or not.
*
* @since 1.4
*/
public boolean isUndecorated ()
{
return undecorated;
}
/**
* Disables or enables decorations for this frame. This method can only be
* called while the frame is not displayable.
*
* @exception IllegalComponentStateException If this frame is displayable.
*
* @since 1.4
*/
public void setUndecorated (boolean undecorated)
{
if (isDisplayable ())
throw new IllegalComponentStateException ();
this.undecorated = undecorated;
}
} // class Dialog