Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/#27lists-fonts-monospaced #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions src/view/JAlphaNotationGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ public class JAlphaNotationGUI {

public static final Dimension BUTTON_SIZE = new Dimension(42, 42);

public static final Font FONT = new Font("Courier New", 0, 14);


public JAlphaNotationGUI() {
this.GUITranslations = new ArrayList<ITranslation>();
Expand Down Expand Up @@ -347,10 +349,8 @@ protected void InitScrollPanes() {
protected void InitTextArea() {
this.TextAreaSource = new JEditorPane();
this.TextAreaConsole = new JEditorPane();
TextAreaSource.setFont(new Font("Courier New", 0, 14));
TextAreaConsole.setFont(new Font("Courier New", 0, 14));

//this.TextAreaSource.setBackground(Color.BLACK);
TextAreaSource.setFont(FONT);
TextAreaConsole.setFont(FONT);
}

public void setListRuntimeDebugCompileError(String[] arr, int index, String error) {
Expand All @@ -363,15 +363,19 @@ public void setListRuntimeDebugCompileError(String[] arr, int index, String erro
protected void InitLists() {
this.ListMemory = new JList<>();
this.ListMemory.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
this.ListMemory.setFont(FONT);

this.ListRegister = new JList<>();
this.ListRegister.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
this.ListRegister.setFont(FONT);

this.ListStack = new JList<>();
this.ListStack.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
this.ListStack.setFont(FONT);

this.ListRuntimeDebug = new JList<>();
this.ListRuntimeDebug.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
this.ListRuntimeDebug.setFont(FONT);
}

public void SetCaretPositonSourceTextField(int i) {
Expand Down Expand Up @@ -421,7 +425,6 @@ protected void AddTabbedPaneContent() {
//TODO Translation and Interface Update for languages
this.MainMiddleTabbedPane.addTab(IGUITranslation.getMainMiddleTabbedPaneDebugRuntime(), this.ListRuntimeDebug);

//this.MainMiddleTabbedPane.addTab(IGUITranslation.getMainMiddleTabbedPaneSource(), this.ScrollPaneTextSource);
this.MainDownTabbedPane.addTab(IGUITranslation.getMainDownTabbedPaneConsole(), this.ScrollPaneTextAreaConsole);

this.MainRightTabbedPane.addTab(IGUITranslation.getMainRightTabbedPaneRegister(), this.ListRegister);
Expand Down