Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Changing the visual aspect of a text control



Hi Reinaldo,
As David suggested, SWT.FLAT | SWT.BORDER should do it.

Chris

import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.graphics.*;
import org.eclipse.swt.layout.*;

public class PR {

      public static void main(String[] args) {
            Display display = new Display();
            Shell shell = new Shell(display);
            shell.setText("PR");
            Text text = new Text(shell, SWT.SIMPLE | SWT.FLAT |
SWT.BORDER);
            text.setBounds(10,10,200,50);
            Text text2 = new Text(shell, SWT.MULTI | SWT.FLAT |
SWT.BORDER);
            text2.setBounds(10,100,200,50);

            shell.open();
            while (!shell.isDisposed()) {
                  if (!display.readAndDispatch())
                        display.sleep();
            }
      }
}


                                                                                                                                              
                      David Whiteman                                                                                                          
                      <dlwhiteman@xxxxxxxxxxx        To:       platform-swt-dev@xxxxxxxxxxx                                                   
                      .edu>                          cc:                                                                                      
                      Sent by:                       Subject:  Re: [platform-swt-dev] Changing the visual aspect of a text control            
                      platform-swt-dev-admin@                                                                                                 
                      eclipse.org                                                                                                             
                                                                                                                                              
                                                                                                                                              
                      12/16/2003 08:45 AM                                                                                                     
                      Please respond to                                                                                                       
                      platform-swt-dev                                                                                                        
                                                                                                                                              
                                                                                                                                              




Tuesday, December 16, 2003, 7:21:11 AM, Reinaldo Braga wrote:

> Hum...
> I´m undestand....
> I'll go to search for this

> tks..
> Reinaldo.

Did you try SWT.FLAT?

Please be sure to use the newsgroups for usage questions.

--
Regards,
David
mailto:dlwhiteman@xxxxxxxxxxxxxxx
news://news.eclipse.org/eclipse.platform.swt
http://www.eclipse.org/newsportal/thread.php?group=eclipse.platform.swt

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev





Back to the top