Skip to content

Commit

Permalink
added scroll to edit region
Browse files Browse the repository at this point in the history
  • Loading branch information
i-make-robots committed Dec 25, 2023
1 parent 4f284c7 commit 6cb24b6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void actionPerformed(ActionEvent e) {
if(getButton.isSelected()) {
// if there is no arm, deselect the button.
MarlinRobotArm arm = armSelector.getSubject();
if(arm!=null) {
if(arm==null) {
getButton.setSelected(false);
}
} else {
Expand Down Expand Up @@ -111,7 +111,10 @@ public EditorPanel() {
JToolBar tools = new JToolBar("tools");
addTools(tools);
add(tools, BorderLayout.NORTH);
add(text, BorderLayout.CENTER);

var scroll = new JScrollPane();
scroll.setViewportView(text);
add(scroll, BorderLayout.CENTER);
addStatusBar();
}

Expand Down

0 comments on commit 6cb24b6

Please sign in to comment.