gpt4 book ai didi

java - 在 TableViewer 中双击打开一个对话框

转载 作者:行者123 更新时间:2023-12-01 12:50:13 24 4
gpt4 key购买 nike

我有一个带有几列的 TableViewer。有些字段内容较多渴望田野。因此我想当用户打开一个对话框双击该字段。

谁能给我提示吗?

提前致谢,

最佳答案

您应该使用MouseEvent来捕获事件。然后使用

if (e.getClickCount() == 2) { // MouseEvent e in the parameter.
// show the dialoge
}

关于java - 在 TableViewer 中双击打开一个对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24279716/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com