java tab键_关于java tab键顺序的问题

本人在界面中设置了很多的控件,想控制tab的顺序。我使用composite.setTabList(newControl[]{text_name,combo_sex,text_country});语句进行设置。其中,text_name,combo_sex,text_cou...

本人在界面中设置了很多的控件,想控制tab的顺序。

我使用composite.setTabList(new Control[]{text_name, combo_sex, text_country});语句进行设置。

其中,text_name, combo_sex, text_country为composite中的部件。但是每次运行到此处抛出异常。

ava.lang.IllegalArgumentException: Argument not valid

at org.eclipse.swt.SWT.error(SWT.java:3761)

at org.eclipse.swt.SWT.error(SWT.java:3695)

at org.eclipse.swt.SWT.error(SWT.java:3666)

at org.eclipse.swt.widgets.Widget.error(Widget.java:463)

at org.eclipse.swt.widgets.Composite.setTabList(Composite.java:999)

at com.hcls.ui.view.dialog.CustomerEditorDialog.createDialogArea(CustomerEditorDialog.java:290)

at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)

at org.eclipse.jface.window.Window.create(Window.java:431)

at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)

at org.eclipse.jface.window.Window.open(Window.java:790)

at com.hcls.ui.action.CustomerActionGroup$AddPoteCustomerAction.run(CustomerActionGroup.java:337)

at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)

at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)

at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)

at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)

at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)

at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at hcls_icrm.intro.Application.start(Application.java:275)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

请各位编程达人给看看这是什么原因?

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值