Shell and Graph input lines get focus after running commands
This commit is contained in:
parent
caf1eab0d6
commit
25d562540a
@ -360,6 +360,7 @@ public class Graph extends javax.swing.JInternalFrame {
|
|||||||
for (Component mu : jMenuBar1.getComponents()) {
|
for (Component mu : jMenuBar1.getComponents()) {
|
||||||
mu.setEnabled(true);
|
mu.setEnabled(true);
|
||||||
}
|
}
|
||||||
|
inBox.requestFocusInWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -118,6 +118,7 @@
|
|||||||
</SyntheticProperties>
|
</SyntheticProperties>
|
||||||
<Events>
|
<Events>
|
||||||
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="formMouseClicked"/>
|
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="formMouseClicked"/>
|
||||||
|
<EventHandler event="focusGained" listener="java.awt.event.FocusListener" parameters="java.awt.event.FocusEvent" handler="formFocusGained"/>
|
||||||
</Events>
|
</Events>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
|
||||||
|
@ -160,6 +160,11 @@ public class Interpreter extends javax.swing.JInternalFrame {
|
|||||||
formMouseClicked(evt);
|
formMouseClicked(evt);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
addFocusListener(new java.awt.event.FocusAdapter() {
|
||||||
|
public void focusGained(java.awt.event.FocusEvent evt) {
|
||||||
|
formFocusGained(evt);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
mainBox.setEditable(false);
|
mainBox.setEditable(false);
|
||||||
mainBox.setColumns(20);
|
mainBox.setColumns(20);
|
||||||
@ -432,6 +437,10 @@ public class Interpreter extends javax.swing.JInternalFrame {
|
|||||||
commandsForExport = "";
|
commandsForExport = "";
|
||||||
}//GEN-LAST:event_clearBtnActionPerformed
|
}//GEN-LAST:event_clearBtnActionPerformed
|
||||||
|
|
||||||
|
private void formFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_formFocusGained
|
||||||
|
inputBox.requestFocusInWindow();
|
||||||
|
}//GEN-LAST:event_formFocusGained
|
||||||
|
|
||||||
private void doRunCode() {
|
private void doRunCode() {
|
||||||
String code = inputBox.getText();
|
String code = inputBox.getText();
|
||||||
commandsForExport += code + "\n";
|
commandsForExport += code + "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user