Article View: cn.bbs.comp.lang.java
Article #17����ѡ���ʾ��̨����ǰ̨��ʾ������
From: chaochao
Date: Sun, 18 Sep 2011 09:10
Date: Sun, 18 Sep 2011 09:10
43 lines
1961 bytes
1961 bytes
�½�һ��ѡ����������ں�̨��ʾ�ģ�����ǰ̨������ʾ ����ô�죿
�������£�
final CTabFolder tabFolder1 = new CTabFolder(shell, SWT.NONE|SWT.CLOSE|SWT.BORDER);
tabFolder1.setBounds(0, 104, 750, 300);
tabFolder1.setTabHeight(20);
tabFolder1.marginHeight = 5;
tabFolder1.marginWidth = 5;
tabFolder1.setSimple(false);//����Բ��
tabFolder1.setUnselectedCloseVisible(true);
btnButton.addSelectionListener(new SelectionAdapter(){
public void widgetSelected(SelectionEvent event) {
CTabItem item = new CTabItem(tabFolder1, SWT.MULTI|SWT.V_SCROLL|SWT.NONE);
item.setText(((Button) event.widget).getText());
Com com1 = new Com(tabFolder1,SWT.None);
item.setControl(com1);
}
});
--
[1;31m�� ��Դ:�������ʵBBS http://bbs.tju.edu.cn [FROM: 219.229.253.6][m
Technical Details
Message-ID:
<57kUdZ$9GS@bbs.tju.edu.cn>Path:
arc1-ca.pugleaf.net!m9ni8863pbd.0!nntp.google.com!news1.google.com!news2.google.com!news.glorb.com!news.ripco.com!feeder.erje.net!news.shec6.edu.cn!news.byr.edu.cn!TJUShow Full Headers
Complete Article Headers
X-Google-Thread: f6cb0,3792f724b1204745,start
X-Google-NewGroupId: yes
X-Google-Attributes: gidd1247dbd28,domainid0,public,usenet
X-Google-Language: Chinese,GB
Received: by 10.68.21.67 with SMTP id t3mr1047464pbe.26.1316342705290;
Sun, 18 Sep 2011 03:45:05 -0700 (PDT)
Path: arc1-ca.pugleaf.net!m9ni8863pbd.0!nntp.google.com!news1.google.com!news2.google.com!news.glorb.com!news.ripco.com!feeder.erje.net!news.shec6.edu.cn!news.byr.edu.cn!TJU
From: wch.bbs@bbs.tju.edu.cn.no.spam (chaochao)
Newsgroups: cn.bbs.comp.lang.java
Subject: ����ѡ���ʾ��̨����ǰ̨��ʾ������
Date: 18 Sep 2011 09:10:11 GMT
Organization: �����ʵBBSվ
Message-ID: <57kUdZ$9GS@bbs.tju.edu.cn>
Mime-Version: 1.0
X-Filename: Java/M.1316337011.A
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit