The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Applet's Label is not geting alligned.......

Posted by Guarav on May 28, 2001 at 2:13 PM

Code as under the applet Label is Centre aligned no matter what i say (I am on Win NT)

import java.awt.*;
import java.applet.*;
public class AWTTest extends Applet
{
public void init()
{
add(new Label("Right",Label.RIGHT));
add(new Label("Left",Label.LEFT));
add(new Label("Center",Label.CENTER));
}
}

What could be Wrong????



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us