Skip to content

Commit d047497

Browse files
committed
Convert the message area to JTextField
This makes it possible to select and copy the text, which is often too long and can't be read otherwise. Closes #15.
1 parent e9c1446 commit d047497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

HackGUIPackage/src/main/java/HackGUI/ControllerComponent.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public class ControllerComponent extends JFrame implements ControllerGUI,
119119
protected JRadioButtonMenuItem partAnimMenuItem, fullAnimMenuItem, noAnimMenuItem;
120120

121121
// the message label (status line)
122-
protected JLabel messageLbl = new JLabel();
122+
private JTextField messageLbl = new JTextField();
123123

124124
// component for displaying the script, output file and comparison file.
125125
protected FileDisplayComponent scriptComponent;
@@ -133,6 +133,7 @@ public class ControllerComponent extends JFrame implements ControllerGUI,
133133
* Constructs a new ControllerComponent.
134134
*/
135135
public ControllerComponent() {
136+
messageLbl.setEditable(false);
136137
listeners = new Vector<ControllerEventListener>();
137138
formatCombo = new TitledComboBox("Format:", "Numeric display format",
138139
new String[]{"Decimal", "Hexa", "Binary"}, 75);

0 commit comments

Comments
 (0)