Skip to content

Commit 10ed294

Browse files
committed
removed jscrollpane
1 parent 4effd3e commit 10ed294

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/main/java/com/marginallyclever/donatello/Donatello.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.marginallyclever.donatello;
22

3+
import com.marginallyclever.donatello.modaltools.RememberKeyStateAction;
34
import com.marginallyclever.nodegraphcore.*;
45
import com.marginallyclever.donatello.actions.*;
56
import com.marginallyclever.donatello.actions.undoable.*;
@@ -15,9 +16,7 @@
1516
import javax.swing.undo.UndoManager;
1617
import javax.swing.undo.UndoableEdit;
1718
import java.awt.*;
18-
import java.awt.event.KeyEvent;
19-
import java.awt.event.MouseAdapter;
20-
import java.awt.event.MouseEvent;
19+
import java.awt.event.*;
2120
import java.util.ArrayList;
2221
import java.util.List;
2322

@@ -117,12 +116,12 @@ public Donatello(NodeGraph model) {
117116
paintArea = new NodeGraphViewPanel(model);
118117

119118
this.add(toolBar,BorderLayout.NORTH);
120-
this.add(new JScrollPane(paintArea),BorderLayout.CENTER);
119+
this.add(paintArea,BorderLayout.CENTER);
121120

122121
setupTools();
123122
setupPaintArea();
124123

125-
attachMouseAdapter();
124+
attachMouse();
126125

127126
setupMenuBar();
128127

@@ -436,9 +435,9 @@ private void activateCurrentTool() {
436435
}
437436

438437
/**
439-
* Attaches the mouse adapter
438+
* Respond to popup menu requests
440439
*/
441-
private void attachMouseAdapter() {
440+
private void attachMouse() {
442441
paintArea.addMouseListener(new MouseAdapter() {
443442
@Override
444443
public void mousePressed(MouseEvent e) {

0 commit comments

Comments
 (0)