🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.lang.java
1 messages
1 total messages Started by chaochao Sun, 18 Sep 2011 09:10
����ѡ���ʾ��̨����ǰ̨��ʾ������
#17
Author: chaochao
Date: Sun, 18 Sep 2011 09:10
43 lines
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);

               

	  	    }

	    });
--
�� ��Դ:�������ʵBBS http://bbs.tju.edu.cn [FROM: 219.229.253.6]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads