Skip to content

Commit

Permalink
微调
Browse files Browse the repository at this point in the history
  • Loading branch information
rememberber committed Oct 27, 2023
1 parent 0e5ed21 commit 00b4075
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
</grid>
</constraints>
<properties>
<continuousLayout value="false"/>
<dividerLocation value="500"/>
<continuousLayout value="true"/>
<dividerLocation value="463"/>
<dividerSize value="3"/>
</properties>
<border type="none"/>
Expand All @@ -71,7 +71,7 @@
<component id="61044" class="javax.swing.JTextArea" binding="codeArea">
<constraints/>
<properties>
<background color="-3608620"/>
<background color="-13947600"/>
<font name="Consolas" size="16"/>
<text value=""/>
</properties>
Expand All @@ -88,7 +88,7 @@
<component id="286fe" class="javax.swing.JTextArea" binding="resultArea">
<constraints/>
<properties>
<background color="-820"/>
<background color="-13947600"/>
<editable value="false"/>
<font name="Consolas" size="16"/>
</properties>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
package com.luoboduner.moo.tool.ui.form.func;

import com.alibaba.fastjson2.util.IOUtils;
import com.intellij.uiDesigner.core.GridConstraints;
import com.intellij.uiDesigner.core.GridLayoutManager;
import com.intellij.uiDesigner.core.Spacer;
import com.luoboduner.moo.tool.App;
import com.luoboduner.moo.tool.ui.listener.func.JavaConsoleListener;
import groovy.lang.GroovyShell;
import groovy.lang.Script;
import lombok.Getter;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.time.DateFormatUtils;

import javax.swing.*;
import javax.swing.plaf.FontUIResource;
import javax.swing.text.StyleContext;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.*;
import java.util.Date;
import java.util.Locale;
import java.util.Objects;
import java.util.function.Supplier;

@Getter
public class JavaConsoleForm {
Expand All @@ -34,7 +23,6 @@ public class JavaConsoleForm {
private static JavaConsoleForm javaConsoleForm;

public JavaConsoleForm() {
$$$setupUI$$$();
init();
}

Expand All @@ -50,6 +38,13 @@ private void init() {
.addListener();
}

{
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
$$$setupUI$$$();
}

/**
* Method generated by IntelliJ IDEA GUI Designer
* >>> IMPORTANT!! <<<
Expand Down Expand Up @@ -77,22 +72,22 @@ private void init() {
final Spacer spacer1 = new Spacer();
panel1.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));
final JSplitPane splitPane1 = new JSplitPane();
splitPane1.setContinuousLayout(false);
splitPane1.setDividerLocation(500);
splitPane1.setContinuousLayout(true);
splitPane1.setDividerLocation(463);
splitPane1.setDividerSize(3);
javaConsolePanel.add(splitPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));
final JScrollPane scrollPane1 = new JScrollPane();
splitPane1.setLeftComponent(scrollPane1);
codeArea = new JTextArea();
codeArea.setBackground(new Color(-3608620));
codeArea.setBackground(new Color(-13947600));
Font codeAreaFont = this.$$$getFont$$$("Consolas", -1, 16, codeArea.getFont());
if (codeAreaFont != null) codeArea.setFont(codeAreaFont);
codeArea.setText("");
scrollPane1.setViewportView(codeArea);
final JScrollPane scrollPane2 = new JScrollPane();
splitPane1.setRightComponent(scrollPane2);
resultArea = new JTextArea();
resultArea.setBackground(new Color(-820));
resultArea.setBackground(new Color(-13947600));
resultArea.setEditable(false);
Font resultAreaFont = this.$$$getFont$$$("Consolas", -1, 16, resultArea.getFont());
if (resultAreaFont != null) resultArea.setFont(resultAreaFont);
Expand Down

0 comments on commit 00b4075

Please sign in to comment.