在我的应用程序中,我想创建一个带有一个文本字段和一个按钮的对话框,通过该按钮我可以提示用户并获取用户输入的值.
我如何在Cocoa,Objective-C中做到这一点?
我没有找到任何预定义的方法.
如何在SWT表列中添加超链接?我正在使用org.eclipse.swt.widgets.Table类.
有没有办法在不使用TableViewer,JFace的情况下做到这一点?
我试过这种方式,但没有正常工作(没有显示超链接).
for(int i=2; i<4; i++){
Hyperlink link = new Hyperlink(table, SWT.WRAP);
link.setText(temp[i]);
link.setUnderlined(true);
TableEditor editor = new TableEditor(table);
editor.setEditor(link, tableItem[index-1], i); //set hyperlinks in column i
}
Run Code Online (Sandbox Code Playgroud)