Skip to content

Commit e204066

Browse files
author
nicol
committed
pom updates
1 parent a23775c commit e204066

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
<dependency>
201201
<groupId>com.github.nicho92</groupId>
202202
<artifactId>cardnexus-api-java</artifactId>
203-
<version>1.4.35</version>
203+
<version>1.4.36</version>
204204
</dependency>
205205
<dependency>
206206
<groupId>com.github.nicho92</groupId>
@@ -561,7 +561,7 @@
561561
<dependency>
562562
<groupId>org.xerial</groupId>
563563
<artifactId>sqlite-jdbc</artifactId>
564-
<version>3.53.2.1</version>
564+
<version>3.53.4.0</version>
565565
</dependency>
566566
<dependency>
567567
<groupId>org.apache.commons</groupId>
@@ -780,7 +780,7 @@
780780
<dependency>
781781
<groupId>org.jsoup</groupId>
782782
<artifactId>jsoup</artifactId>
783-
<version>1.23.1</version>
783+
<version>1.23.2</version>
784784
</dependency>
785785
<dependency>
786786
<groupId>com.mysql</groupId>

src/main/java/org/magic/api/beans/MTGCard.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static int calculateManaCost(String manaCost) {
129129
private String subsets;
130130
private boolean isJapanese = false;
131131
private boolean gameChanger;
132-
132+
133133

134134

135135
public MTGCard() {
@@ -154,7 +154,7 @@ public MTGCard() {
154154

155155
@Override
156156
public MTGEdition getEdition() {
157-
157+
158158
if (edition == null && !getEditions().isEmpty())
159159
edition = getEditions().get(0);
160160

src/main/java/org/magic/gui/components/ScriptPanel.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public class ScriptPanel extends MTGUIComponent {
5959
private File currentFile;
6060
private transient Future<?> f;
6161

62+
private Color defaultColor;
63+
64+
6265
@Override
6366
public String getTitle() {
6467
return "Script";
@@ -68,7 +71,10 @@ public ScriptPanel() {
6871
setLayout(new BorderLayout());
6972
editorPane = new RSyntaxTextArea();
7073
editorPane.setCodeFoldingEnabled(true);
74+
7175
resultPane = new JTextPane();
76+
77+
7278
var splitPane = new JSplitPane();
7379
var paneHaut = new JPanel();
7480
var paneBas = new JPanel();
@@ -229,7 +235,7 @@ public void componentShown(ComponentEvent componentEvent) {
229235

230236
}
231237
});
232-
238+
defaultColor = resultPane.getForeground();
233239
}
234240

235241
private CompletionProvider createCompletionProvider() {
@@ -246,7 +252,6 @@ private void appendResult(String msg) {
246252
appendResult(msg, defaultColor);
247253
}
248254

249-
private Color defaultColor = StyleContext.getDefaultStyleContext().getForeground(SimpleAttributeSet.EMPTY);
250255

251256
private void appendResult(String msg, Color c) {
252257
var sc = StyleContext.getDefaultStyleContext();

0 commit comments

Comments
 (0)