Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to set a border around a Label??
How to set a border around a Label?? [message #447847] Sun, 19 December 2004 00:48 Go to next message
Eclipse UserFriend
Originally posted by: shaffin.email.uophx.edu

This is a multi-part message in MIME format.

------=_NextPart_000_009C_01C4E53A.9B6E7DB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I am new to SWT programming and was wondering how to set a border around =
Widgets such as the Label widget???

Label title =3D new Label( shell, SWT.FLAT | SWT.BORDER );

Is this correct???

Shaffin Bhanji.
------=_NextPart_000_009C_01C4E53A.9B6E7DB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2180" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hello,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I am new to SWT programming and was wondering how to =
set a=20
border around Widgets such as the Label widget???</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Label title =3D new Label( shell, SWT.FLAT | =
SWT.BORDER=20
);</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Is this correct???</FONT></DIV>
<DIV><FONT size=3D2><BR>Shaffin Bhanji.</FONT></DIV></BODY></HTML>

------=_NextPart_000_009C_01C4E53A.9B6E7DB0--
Re: How to set a border around a Label?? [message #447870 is a reply to message #447847] Mon, 20 December 2004 17:03 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.

------=_NextPart_000_003A_01C4E68B.E2727110
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Yes but lose the SWT.FLAT. It's not supported on every widget.
"SHAFFIN BHANJI" <shaffin@email.uophx.edu> wrote in message =
news:cq2j5k$iko$1@www.eclipse.org...
Hello,

I am new to SWT programming and was wondering how to set a border =
around Widgets such as the Label widget???

Label title =3D new Label( shell, SWT.FLAT | SWT.BORDER );

Is this correct???

Shaffin Bhanji.
------=_NextPart_000_003A_01C4E68B.E2727110
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Yes but lose the SWT.FLAT.&nbsp; It's =
not supported=20
on every widget.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"SHAFFIN BHANJI" &lt;<A=20
=
href=3D"mailto:shaffin@email.uophx.edu">shaffin@email.uophx.edu</A>&gt; =
wrote in=20
message <A=20
=
href=3D"news:cq2j5k$iko$1@www.eclipse.org">news:cq2j5k$iko$1@www.eclipse.=
org</A>...</DIV>
<DIV><FONT size=3D2>Hello,</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I am new to SWT programming and was wondering how =
to set a=20
border around Widgets such as the Label widget???</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Label title =3D new Label( shell, SWT.FLAT | =
SWT.BORDER=20
);</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Is this correct???</FONT></DIV>
<DIV><FONT size=3D2><BR>Shaffin =
Bhanji.</FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003A_01C4E68B.E2727110--
Previous Topic:resize event only called once????
Next Topic:How to save the table-content
Goto Forum:
  


Current Time: Sat Oct 24 15:59:42 GMT 2020

Powered by FUDForum. Page generated in 0.04374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top