停止 DropShadowBorder 控制台日志记录

发布于 2024-10-10 13:17:29 字数 303 浏览 0 评论 0原文

我有一个扩展 JButton 的基本类,并使用 SwingX 的 DropShadowBorder 添加简单的边框。问题是每次我将光标悬停在按钮上时它都会显示以毫秒为单位的时间分数。有什么办法可以禁用此日志记录吗?这是我正在使用的代码:

DropShadowBorder sb = new DropShadowBorder();
sb.paintBorder(this, g2, 25, 15, 625, 525);

输出如下所示:

1ms
0ms
1ms
1ms
0ms

I have a basic class that extends JButton, and used SwingX's DropShadowBorder to add a simple border. The problem is it displays a time fraction in milliseconds every time I hover the cursor over the button. Is there any way to disable this logging? This is the code I'm using:

DropShadowBorder sb = new DropShadowBorder();
sb.paintBorder(this, g2, 25, 15, 625, 525);

The output looks like this:

1ms
0ms
1ms
1ms
0ms

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

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

发布评论

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

评论(1

沉睡月亮 2024-10-17 13:17:29

查看 DropShadowBorder 的源代码,我没有看到任何控制台输出。 ( http://www.java2s.com/Open-Source/Java-Document/Swing-Library/swingx/org/jdesktop/swingx/border/DropShadowBorder.java.htm

它必须来自您的按钮或代码。

Looking at the source code for DropShadowBorder, I don't see any console output. ( http://www.java2s.com/Open-Source/Java-Document/Swing-Library/swingx/org/jdesktop/swingx/border/DropShadowBorder.java.htm)

It must be coming from your button or code.

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