Intellij idea 有没有办法重用IntelliJ ui组件,如com.IntelliJ.ui.components.JBScrollPane?

Intellij idea 有没有办法重用IntelliJ ui组件,如com.IntelliJ.ui.components.JBScrollPane?,intellij-idea,Intellij Idea,调用newJScrollPane时,系统提示我使用JBScrollPane com.intellij.ui.components.JBScrollPane 但是当我导入com.intellij.ui.components.JBScrollPane时,编译触发了一个错误 error: cannot find symbol import com.intellij.ui.components.JBScrollPane; 我尝试添加此存储库,但它不起作用。此检查应该仅在IntelliJ本身和Inte

调用new
JScrollPane
时,系统提示我使用
JBScrollPane

com.intellij.ui.components.JBScrollPane
但是当我导入com.intellij.ui.components.JBScrollPane时,编译触发了一个错误

error: cannot find symbol
import com.intellij.ui.components.JBScrollPane;

我尝试添加此存储库,但它不起作用。

此检查应该仅在IntelliJ本身和IntelliJ插件的代码中显示;如果你在一个普通的Swing项目中看到它,那就是一个bug

IntelliJ组件可以调整为在IntelliJ之外使用,但它们的打包和发布方式并不方便