SWT 在Composite动态添加控件注意问题

来源:互联网 发布:linux备份文件命令bak 编辑:程序博客网 时间:2024/04/20 05:41
        MessageTextBubble aa = new MessageTextBubble(c1,SWT.NONE,TouchLookAndFeel.getInstance().会话().getImageData(),str);
        aa.setLayoutData(bb);
        sc1.getVerticalBar().setSelection(sc1.getVerticalBar().getMaximum());
        c1.setSize(c1.computeSize(SWT.DEFAULT, SWT.DEFAULT));
        sc1.getVerticalBar().setSelection(sc1.getVerticalBar().getMaximum());
        c1.layout();    
        sc1.layout();
        sc1.redraw();
        //sc1.pack();
        c1.redraw();
        sc1.getVerticalBar().setSelection(sc1.getVerticalBar().getMaximum());
        inputText.setText("");
0 0