Hi If you're using JDK1.3 or greater, set the label to:
<html><center>User</center> Response</html> Best Regards Nicholas > Delivered-To: [EMAIL PROTECTED] > From: "Greg Munt" <[EMAIL PROTECTED]> > To: "Stephen Price" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Subject: Re: (no subject) > Mime-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 > X-Msmail-Priority: Normal > X-Mimeole: Produced By Microsoft MimeOLE V5.50.4522.1200 > X-Beenthere: [EMAIL PROTECTED] > X-Mailman-Version: 2.0.1 > List-Help: <mailto:[EMAIL PROTECTED]?subject=help> > List-Post: <mailto:[EMAIL PROTECTED]> > List-Subscribe: <http://eos.dk/mailman/listinfo/advanced-swing>, <mailto:[EMAIL PROTECTED]?subject=subscribe> > List-Id: Advanced Java Swing programming <advanced-swing.eos.dk> > List-Unsubscribe: <http://eos.dk/mailman/listinfo/advanced-swing>, <mailto:[EMAIL PROTECTED]?subject=unsubscribe> > List-Archive: <http://eos.dk/pipermail/advanced-swing/> > Date: Wed, 24 Apr 2002 13:16:29 +0100 > > Extend a JTextArea, and give it the look and feel of a JLabel: > > public void updateUI() > { > super.updateUI(); > > setLineWrap (true); > setWrapStyleWord (true); > setHighlighter (null); > setEditable (false); > > LookAndFeel.installBorder (this, "Label.border"); > LookAndFeel.installColorsAndFont (this, "Label.background", > "Label.foreground", "Label.font"); > } > > ----- Original Message ----- > From: "Stephen Price" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, April 23, 2002 4:33 AM > Subject: (no subject) > > > > Hi, I am writing a JLabel and can't find out how to make the text of the > > label consist of two vertical lines i.e. > > > > instead of the Label "User Response" > > I want the label to look like > > " User > > Response " > > > > Does anyonw nkow how to do this ?? Thanks, Stephen > > > > _______________________________________________ > > Advanced-swing mailing list > > [EMAIL PROTECTED] > > http://eos.dk/mailman/listinfo/advanced-swing > > > > > _______________________________________________ > Advanced-swing mailing list > [EMAIL PROTECTED] > http://eos.dk/mailman/listinfo/advanced-swing =========================================================================== Nicholas Wright Imperial Software Technology Senior Software Engineer --------------------------------------------------------------------------- Email : [EMAIL PROTECTED] or [EMAIL PROTECTED] Kings Court 120 Hawthorne Ave, #101 185 Kings Road Palo Alto Reading RG1 4EX United Kingdom California 94301 USA Tel: +44 118 958 7055 Tel: 650 688 0200 FAX: +44 118 958 9005 FAX: 650 688 1054 =========================================================================== ****** VISAJ AT http://www.ist.co.uk/visaj ****** =========================================================================== _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing