Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Select a cell in a Table
Select a cell in a Table [message #641673] Fri, 26 November 2010 16:15
kkt8 Mising name is currently offline kkt8 Mising nameFriend
Messages: 27
Registered: November 2010
Junior Member
Hello,

I work in a Table (swt), with 1 column et for all the 16 lines, I add a TableEditor in witch I put a Text (or a combo)
 
Table tCol1 = new Table(composite,SWT.NO_SCROLL|SWT.SINGLE);
TableColumn tc;
tc = new TableColumn(tCol1, SWT.RIGHT);
tc.setWidth(115);
for (int i=0; i<16; i++) 
             new TableItem (aTab, SWT.NONE);
TableItem [] items = aTab.getItems ();
TableEditor editor;
for (int i=0; i<items.length; i++) {
    	editor = new TableEditor (aTab);
    	Text text = new Text (aTab, SWT.NONE);
    	text.setText("coucou");
    	editor.grabHorizontal = true;
    	editor.setEditor(text, items[i], 0);
}

On an event , I want take the text on a cell which I know the column and the line.
How do I do ???
Thank you
Previous Topic:Adding java editor to a multi-page editor
Next Topic:help, public class error
Goto Forum:
  


Current Time: Sun Sep 22 14:05:21 GMT 2024

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

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

Back to the top