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

netbeans6.7 - Is it possible to clear the Netbeans output window from my application or temporarily disable all outputs?

问题描述:

Some background:

I've created a Swing application which uses the Substance LaF (Thanks again, Kirill!)

Unfortunately Swing creates a panel somewhere outside the EDT thus leading to an exception message from Substance every time I start my application. By itself this exception is great, I already saved me from creating nasty multithread GUI bugs, but I often miss important outputs because the output window is already cluttered when my application does any real work.

The easiest way would be to patch the Substance source for my personal needs, but I'd rather leave it untouched. That's why I want to know...

  1. Is it possible to clear the output window programmatically, either by calling a method from my application or something like a delayed Ant task?
  2. Alternatively, can I temporarily disable any outputs from my application, including exceptions messages?

网友答案:

Here you are trying to tweak the default behavior of the Output Window which is a part of the NetBeans IDE. You will need to use the relevant NetBeans APIs. Please take a look at OutputWriter and OutputEvent

HTH.

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