没有鼠标的一天(Java 键盘快捷键)

发布于 2024-12-26 01:27:58 字数 334 浏览 5 评论 0原文

今天,我决定做出一项决议,其中包括仅使用键盘测试我的Java应用程序。

但我面临一些障碍:

  1. 如何使用键盘选择/取消选择复选框?
  2. 如何折叠/展开 JTree 中的项目?

非常感谢所有帮助!

更新:

这是我要选择的复选框的示例:
在此处输入图像描述

PS: 空间不起作用

Today I decide to make a resolution which consist of testing my Java application using the keyboard solely.

But I am faced with some obstacles:

  1. How do you select/deselect a checkbox using the keyboard?
  2. How do you collapse/expand items in a JTree?

All help will be much appreciated!

UPDATE:

Here is an example of a checkbox I want to select:
enter image description here

PS: space didn't work

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一影成城 2025-01-02 01:27:59

要回答问题#2,您可以按小键盘上的 -+ 键,或使用 箭头键折叠和展开树。

To answer question #2, you can either press - and + keys from the NUMPAD, or use and arrow keys to collapse and expand trees.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文