我在尝试使用 intelliJ 编译 java 火烈鸟图形工具时遇到此错误。
这是错误项目的 build.gradle 文件:
import javax.swing.SwingUtilities
dependencies {
compile project(":trident")
compile group: 'org.tmatesoft.svnkit', name: 'svnkit', version:'1.2.3.5521'
compile group:'org.apache.xmlgraphics', name:'batik-swing', version:'1.7'
compile (group:'org.apache.xmlgraphics', name:'batik-transcoder', version:'1.7') {
exclude group:'xml-apis'
exclude group:'xalan'
exclude group:'commons-io'
exclude group:'commons-logging'
exclude group:'org.apache.avalon.framework'
}
testCompile group: 'com.jgoodies', name: 'forms', version: '1.2.0'
testCompile group: 'junit', name: 'junit', version: '4.3.1'
testCompile group: 'org.easytesting', name: 'fest-assert', version: '1.2'
testCompile group: 'org.easytesting', name: 'fest-reflect', version: '1.2'
testCompile group: 'org.easytesting', name: 'fest-swing', version: '1.2.1'
testCompile group: 'org.easytesting', name: 'fest-swing-junit', …Run Code Online (Sandbox Code Playgroud) 我想提供一个带有Microsoft Ribbon视图的java应用程序.快速搜索后,我发现火烈鸟项目很有用.问题是我想要一个从右到左的功能区菜单,我不能.我只是想知道API是否为从右到左的功能区任务,带状带等提供支持?
我试图以这种方式为JRibbonBand的实例设置组件方向:
JRibbonBand band1 = new JRibbonBand band1.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
Run Code Online (Sandbox Code Playgroud)
还有主要的功能区:
frame.getRibbon().setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
Run Code Online (Sandbox Code Playgroud)
不幸的是,除了应用程序菜单按钮(顶部的圆形按钮)之外它没有用.
有没有其他方法可以这样做?