File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 >
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 >
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments