小编Hug*_*ori的帖子

如何在桌面JavaFX项目中使用Gluon Mobile主题?

在Scene Builder中,我可以选择一个名为“ Gluon Mobile”的JavaFX主题进行预览。如何通过代码为桌面应用程序设置Gluon Mobile主题?

是)我有的:

setUserAgentStylesheet(STYLESHEET_CASPIAN); // default theme
Run Code Online (Sandbox Code Playgroud)

我想要的是:

setUserAgentStylesheet("SOME_GLUON_THEME_PATH");
Run Code Online (Sandbox Code Playgroud)

OBS:我不需要台式机/移动设备的Gluon项目,我只想使用Gluon主题。

抱歉,您的问题很愚蠢,但我做了一些研究,却没有找到答案。

java javafx gluon

7
推荐指数
0
解决办法
2187
查看次数

Gradle api 传递依赖项不起作用

我有一个库项目,我用它来保存其他项目的一些设置,其中包含许多实用程序类和实用程序库。因此,我将库的 build.gradle 中的所有“实现”调用更改为“api”调用,这样我就不需要一次又一次地重新导入依赖项。构建库并将 jar 从库文件夹移动到主项目内的 lib 文件夹后,我可以访问库中的所有类,但传递依赖项在我的主项目中不可用。

我也尝试使用实现和传递= true,但没有运气。

我正在使用 AdoptOpenJDK 16 和 Gradle 7.0,并且我已经尝试在清理缓存后重建所有内容。

库的 build.gradle

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
    }
}

plugins {
    id 'java-library'
    id 'idea'
    id 'org.springframework.boot' version '2.5.0'
    id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}

group = 'com.mygroup'
archivesBaseName = 'utilities'
version = '1.0.2'

bootJar {
    enabled = false
}

jar {
    enabled = true
}

repositories {
    mavenLocal()
    mavenCentral()
}

dependencies {

    // Spring
    api('org.springframework.boot:spring-boot-starter-web')
    api('org.springframework.boot:spring-boot-starter-validation')
    api('org.springframework.boot:spring-boot-starter-logging')
    api('org.springframework.boot:spring-boot-starter-log4j2')
    api('org.springframework.boot:spring-boot-starter-test')
    api('io.springfox:springfox-boot-starter:3.0.0')

    // Utilities
    api('io.sentry:sentry-spring:4.3.0')
    api('joda-time:joda-time:2.10.10') …
Run Code Online (Sandbox Code Playgroud)

java spring gradle build.gradle spring-boot

3
推荐指数
1
解决办法
5101
查看次数

标签 统计

java ×2

build.gradle ×1

gluon ×1

gradle ×1

javafx ×1

spring ×1

spring-boot ×1