slf4j deps
This commit is contained in:
parent
9dd95e8f27
commit
f76943bc30
8
pom.xml
8
pom.xml
@ -16,14 +16,14 @@
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.4.5</version>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>2.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.24</version>
|
||||
<version>1.18.28</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mortennobel</groupId>
|
||||
|
||||
@ -1,13 +1,12 @@
|
||||
package de.ph87.kindermalen.toolbox.tool.stamp;
|
||||
|
||||
import de.ph87.kindermalen.MyComponent;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import de.ph87.kindermalen.*;
|
||||
import lombok.extern.slf4j.*;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.Comparator;
|
||||
import java.util.*;
|
||||
|
||||
import static de.ph87.kindermalen.CONFIG.SIDEBAR_WIDTH;
|
||||
import static de.ph87.kindermalen.CONFIG.STAMP_BUTTON_SIZE;
|
||||
import static de.ph87.kindermalen.CONFIG.*;
|
||||
|
||||
@Slf4j
|
||||
public class StampButtonList extends MyComponent {
|
||||
@ -27,9 +26,9 @@ public class StampButtonList extends MyComponent {
|
||||
removeAll();
|
||||
if (stampTool.getActiveGroup() != null) {
|
||||
stampTool.getActiveGroup().getStamps().stream()
|
||||
.sorted(Comparator.comparing(Stamp::getFile))
|
||||
.map(stamp -> new StampButton(stampTool, stamp))
|
||||
.forEach(this::add);
|
||||
.sorted(Comparator.comparing(Stamp::getFile))
|
||||
.map(stamp -> new StampButton(stampTool, stamp))
|
||||
.forEach(this::add);
|
||||
setPreferredSize(new Dimension(SIDEBAR_WIDTH, ((int) Math.ceil((double) getComponentCount() * STAMP_BUTTON_SIZE / SIDEBAR_WIDTH) * STAMP_BUTTON_SIZE)));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user