SWT composite - redraw problem

后端 未结 2 764
不思量自难忘°
不思量自难忘° 2021-02-14 05:04

I have a composite element, that initially has a Label. Now I call dispose on the it (the label) and create another label in the same container (composite elm), but I don\'t see

2条回答
  •  旧时难觅i
    2021-02-14 05:17

    I would say add a selectionListener on the label.

    .addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(final SelectionEvent e) {
            //Change text by Label.setText();
        }
    }
    

提交回复
热议问题