@@ -221,7 +221,7 @@ public void actionPerformed(ActionEvent e) {
221
221
e1 .printStackTrace ();
222
222
}
223
223
node .thisface .thispanel .setLocation (node .x , node .y );
224
- node .thisface .thispanel .setSize (300 , 300 );//setBounds(0, 0, node.x+300,node.y+200);
224
+ node .thisface .thispanel .setSize (600 , 480 );//setBounds(0, 0, node.x+300,node.y+200);
225
225
node .thisface .thispanel .setResizable (true );
226
226
node .thisface .thispanel .setClosable (true );
227
227
node .thisface .thispanel .jsp .setBounds (0 , 0 , node .thisface .thispanel .getWidth () - 10
@@ -241,7 +241,7 @@ public void actionPerformed(ActionEvent e) {
241
241
e1 .printStackTrace ();
242
242
}
243
243
node .thisface .thispanel .setLocation (node .x , node .y );
244
- node .thisface .thispanel .setSize (300 , 300 );//setBounds(0, 0, node.x+300,node.y+200);
244
+ node .thisface .thispanel .setSize (600 , 480 );//setBounds(0, 0, node.x+300,node.y+200);
245
245
node .thisface .thispanel .setResizable (true );
246
246
node .thisface .thispanel .setClosable (true );node .thisface .thispanel .jsp .setBounds (0 , 0
247
247
, node .thisface .thispanel .getWidth ()-10 , node .thisface .thispanel .getHeight ()-45 );
@@ -495,23 +495,23 @@ public void mouseDragged(MouseEvent e) {
495
495
currentx =e .getX ();
496
496
currenty =e .getY ();
497
497
LinkNode node =new LinkNode ();
498
- first = new Sort ().sort (first );
499
- node = first ;
498
+ first = new Sort ().sort (first );
499
+ node = first ;
500
500
Graphics g = getGraphics ();
501
501
Graphics2D g2 = (Graphics2D )g ;
502
502
g2 .setColor (Color .black );
503
- if (node != null ){
504
- if (node .leftchoose && !node .rightchoose ){
503
+ if (node != null ){
504
+ if (node .leftchoose && !node .rightchoose ){
505
505
node .setxy (e .getX (),e .getY ());
506
506
new DynamicLineUpdater ().exec (first ,node );
507
507
this .update ();
508
508
}
509
- if (!node .leftchoose && node .rightchoose ){
509
+ if (!node .leftchoose && node .rightchoose ){
510
510
new DrawArrow (g2 ,oldx , oldy , e .getX (), e .getY ());
511
511
this .update (g );
512
512
}
513
- while (node .next != null ){
514
- node = node .next ;
513
+ while (node .next != null ){
514
+ node = node .next ;
515
515
if (node .leftchoose &&!node .rightchoose ){
516
516
node .setxy (e .getX (),e .getY ());
517
517
new DynamicLineUpdater ().exec (first ,node );
0 commit comments