JImagePanel
is a Java Swing component designed to display a BufferedImage
and to automatically resize the image to fit within the panel's bounds.
JImagePanel is hosted on the JitPack package repository which supports Gradle, Maven, and sbt.
Add JitPack to your build.gradle
at the end of repositories.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add JImagePanel as a dependency.
dependencies {
implementation 'com.github.Valkryst:JImagePanel:2025.5.23'
}
Add JitPack as a repository.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add JImagePanel as a dependency.
<dependency>
<groupId>com.github.Valkryst</groupId>
<artifactId>JImagePanel</artifactId>
<version>2025.5.23</version>
</dependency>
Add JitPack as a resolver.
resolvers += "jitpack" at "https://jitpack.io"
Add JImagePanel as a dependency.
libraryDependencies += "com.github.Valkryst" % "JImagePanel" % "2025.5.23"