当前位置: 动力学知识库 > 问答 > 编程问答 >

GWT - How to add an easy ComboBox

问题描述:

I need the GWT Class that describes an easy ComboBox. Looks strange, but i can't use it. I found this but if i try ComboBox combo=new ComboBox(); i can't import the package (there is no way to import it on NetBeans). The same for ComboBoxItem cbItem = new ComboBoxItem(); (but this should be for Smart GWT Library).

These are the actual import :

import com.google.gwt.user.client.ui.Button;

import com.google.gwt.user.client.ui.ClickListener;

import com.google.gwt.user.client.ui.FlowPanel;

import com.google.gwt.user.client.ui.InlineLabel;

import com.google.gwt.user.client.ui.TextArea;

import com.google.gwt.user.client.ui.TextBox;

import com.google.gwt.user.client.ui.Widget;

Maybe some conflicts? I ask sorry, i think this is a stupid question :)

网友答案:

The link you point if from the GXT framework, so you need to import the proper library.

What you're looking for is probably the ListBox widget: see the examples here

分享给朋友:
您可能感兴趣的文章:
随机阅读: